Questions tagged [ios-background-mode]

103 questions
1
vote
0 answers

How to detect when an iOS app is terminated by the user from the multi-tasking UI without using 'Location updates' capability

How to detect when an iOS app is terminated by the user from the multi-tasking UI without using 'Location updates' capability. I know from the Apple's documentation that 'applicationWillTerminate' function in AppDelegate is not called in such a…
1
vote
0 answers

How to disable background modes in xcode so you can build to the device?

I enabled Background Mode to try it out and now its preventing my app from building to a device. I am trying to disable background mode because quite frankly its messing up my builds and preventing me from running the app. I tried building on the…
0
votes
0 answers

kCLErrorDomain error 1 when iOS app gets background location updates. (Permission is still given!)

We are currently experiencing a very interesting issue when accessing the location in the background with CLLocationManager. The user has given our app the "whenInUse" permission for locations and in most cases the app provides location updates even…
JulianLenz
  • 188
  • 1
  • 6
0
votes
1 answer

how to start a liveActivity from a remote notification • Swift

When implementing lock screen live activity widget for debugging purposes I had a button which runs startLiveActivity() function, app runs normaly widget appears totally functioning. However I need this activity widget to appear whenever the app…
0
votes
0 answers

FCM push notification not working when app is closed and user on another apps in Flutter

I had implemented FCM in flutter. In android push notification is working fine in all modes(foreground, background and terminated). And in iOS push notification is working fine in all modes(foreground, background and terminated). but issue is when…
0
votes
0 answers

iOS Core Bluetooth time limit for execution after being woken up from suspended state due to a bluetooth event

The programming guide for Core Bluetooth states that Upon being woken up, an app has around 10 seconds to complete a task. Ideally, it should complete the task as fast as possible and allow itself to be suspended again. Apps that spend too much…
0
votes
0 answers

WatchOS SwiftUI App Keeps Opening on Wrist Raise

We have a SwiftUI watch app that has the workout processing background mode. Every time our users raise their wrist the app opens. I understand that this is one of the abilities granted by Apple with the given background mode for active workouts. I…
0
votes
0 answers

I am unable to upload images in background in IOS using WorkManager in Flutter

I am unable to upload images in background in IOS using WorkManager in Flutter. First It is taking approx 40-50 minutes to execute also it crash on http.post method This is my Code Workmanager().registerOneOffTask("task-identifier",…
0
votes
0 answers

CBL2CAPChannel not responsive while app is backgrounded

I'm facing an issue where L2CAP (or NSStream) stops notifying events to the app after app went to background (after 2-10 seconds). App is probably being suspended (as expected). My expectation is that when there's BLE activity, app should be awaken…
0
votes
1 answer

How to make WKWebView Execute javascript methods when going to background?

I'm trying to integrate PayU payment services in my app. All is done in WKWebview. The user hits the payment button, web view pops up and in the web view the payU service is loaded. All works fine. The problem appears when the user gets notification…
0
votes
0 answers

How to execute background Long Running tasks in React native (iOS)

I have a case where I need to run a background task for at least 8-12 mins based on network bandwidth. I searched a lot but can't find a way in React Native. I'm just wondering is it really not possible with react-native even at 2022 ? Suggestions…
0
votes
0 answers

Prevent app from being killed in background by iOS Camera app

I have an GPS-Tracking-Fitness-App where the user can track workouts in the background. All of that is working fine. No problem. But SOME users - not many, but some - have the problem, that opening the camera app on their phones will kill my app. I…
Georg
  • 3,664
  • 3
  • 34
  • 75
0
votes
1 answer

Background Service in Appcelerator titanium for iOS

I am facing some problem in background service.I have registered the backgrond service like:var service = Ti.App.iOS.registerBackgroundService({url:'/bgservice.js'}); in bgservice.js :I actually want to check the DB(where the data execution time…
0
votes
3 answers

Updating location to server every X minutes iOS

I am trying to update location from app to firebase after every X minutes ( any value less than 15mins is good). I have enabled background mode for location and in following method I try to upload to Firestore document. func locationManager(_…
vishal dharankar
  • 7,536
  • 7
  • 57
  • 93
0
votes
0 answers

How do I keep my flash light code running while the app is put into background?

Button(action: { DispatchQueue.global(qos: .userInteractive).async { self.lightOn.toggle() let cam = AVCaptureDevice.default(.builtInWideAngleCamera, for: .video, position: .back) try?…
Ernest Tan
  • 11
  • 4