Skip to main content

All Questions

Tagged with
0 votes
0 answers
29 views

Screen design issue

With this code why i got white space above the green bottom area? i already given .background(Image("home_bg")) for ScrollView. Then why that white area? I want ScrollView bottom should be ...
Swift's user avatar
  • 1,172
0 votes
0 answers
86 views

iOS App not running in Background when downloaded from Testflight. But will run perfectly when installed from Xcode directly to device

In Xcode I have added Background mode capabilities, Because of which I am able to execute code in Background. How I validate this I checked this through scheduling NSTimer to print logs. Timer is ...
Sudhir kumar's user avatar
-1 votes
1 answer
25 views

Detecting when HKWorkoutSession is being forcibly closed/ended in background

I noticied that my workout session is sometimes being killed by apple when the app is in the background and it seems that the func workoutSession(_ workoutSession: HKWorkoutSession, didChangeTo ...
HealthAppy's user avatar
-1 votes
1 answer
150 views

Activate AudioSession while app is in background or killed

I'm developing a voice communication App using Livekit SDK. Everything works fine in the foreground. AudioSession is activated, and audio is transmitted. However, I would like to add a feature. I ...
enrico-g's user avatar
1 vote
0 answers
62 views

Getting rootViewController for iOS13+ & Swift 5

I am trying to get rootViewController like: UIApplication.shared.keyWindow?.rootViewController This is working while the app is in the foreground. My app has also indication for "Voice over IP&...
krs's user avatar
  • 553
0 votes
1 answer
86 views

iOS - Update the icon badge number at a certain time after the application closes

for example, it's 15:00 and I'm closing the app. icon badge number is 3. At exactly 15:20, icon badge number should become 4. What are the possible solutions? Swift/SwiftUI I read about background ...
Georgii Maltsev's user avatar
0 votes
2 answers
84 views

In iOS Swift, After app is sent to background and taken back, response is not coming if the request is kept open for 30 seconds

In Swift, I am using the urlsession framework for fetching data from APIs. I am adding requests into operationqueue and internally I am doing an operation to make sure the fire in FIFO format. I sent ...
wolverine's user avatar
  • 199
2 votes
2 answers
194 views

Unable to change background color of the preview from data of custom struct in SwiftUI

I'm learning Swift and SwiftUI following to this tutorial. The background color of the preview not changed as expected. My code The Theme.swift: import SwiftUI enum Theme: String { // ...others ...
dbx's user avatar
  • 21
0 votes
2 answers
233 views

How to stop ongoing dispatch group execution and start new one?

So I have a paginated API that I have to call every time a user enters a screen. The below code works fine but has one issue if say API calls are in progress and the user backs down and comes again ...
NickCoder's user avatar
  • 1,530
0 votes
0 answers
80 views

Issue with Bluetooth Background Scanning on iOS 15.7.3. BLE. Swift

I'm facing an issue with background scanning of Bluetooth on devices with iOS 15.7.3. I'm developing an application that needs to discover BLE devices even in the background mode. However, the ...
Nruzumak Nruzumak's user avatar
1 vote
1 answer
78 views

Swift background downloadTask doesn't call willPerformHTTPRedirection

I am having an issue where using a background urlsession, and my willPerformHTTPRedirection doesn't get called: private class BackgroundCachingDelegate: NSObject, URLSessionDelegate, ...
David Kroukamp's user avatar
0 votes
2 answers
275 views

How to create a signature scanner and remove white background for transparency?

I'm working on a project where I need to create a signature scanner. The basic idea is that a user writes their signature on a sheet of paper with a blue pen, then scans the photo of the signature. ...
Rin Star 's user avatar
1 vote
1 answer
95 views

Why my app gets fired immediately after entering background mode?

My SwiftUI app gets fired immediately after entering the background mode. I replicated the issue in a clean project and after killing all the opened apps and after rebooting the phone: import SwiftUI ...
Danilo's user avatar
  • 326
0 votes
0 answers
64 views

Running background mode for BLE app using swift stops working

I have medical app that communicates with bluetooth device all the time monitoring heart rate and oxygen. It polls BLE device every second. In swift app I set it as background with following modes: ...
gravitor's user avatar
1 vote
0 answers
23 views

Get track user location when app is killed

I am making an app with location in real time, when I get the location in the foreground and background I have no problem, but when I want to do the same with the app closed, I can never get it. Is ...
Jaime Giovanni Guerra's user avatar

15 30 50 per page
1
2 3 4 5
36