Questions tagged [ios-background-mode]

103 questions
1
vote
0 answers

Background timer not working after 30 seconds in iOS 13.0 and later version. is there any solution?

I have an iOS app which includes timer functionality. App works completely fine when in foreground and timer works good. but when i go in background mode timer works for only 30 seconds AND “NO BACKGROUND TASK EXIST WITH IDENTIFIER ERROR ”…
Android Devs
  • 125
  • 13
1
vote
0 answers

UIImagePickerController finishing picking when the app goes to background on time when video still compressing

We got a problem with UIImagePickerController: in our application users can pick media with big size(for example 4k video). For media picking we use UIImagePickerController and everything worked well. But if the user moves the device to sleep, when…
1
vote
0 answers

BLE app is suspended when running in Background on iOS 12

Background I have an iOS app which scans for BLE devices in the Background. It worked well until I updated to iOS12. This is what I have: App is configured to run in Background (e.g. location & bluetooth-central keys in .plist) App is supposed to…
Bassman
  • 353
  • 5
  • 17
1
vote
1 answer

iOS Background Task does not remain alive if launched when phone is locked (screen off)

I have an iOS application which interacts with BLE devices. The Bluetooth LE accessories background mode is active so that the application is able to connect and interact with BLE devices even when it's put in the background. When a BLE device is…
1
vote
1 answer

UIPasteboard returns nil in the background

I am trying to read the Pasteboard for 5 times in the applicatioDidEnterBackground section of the AppDelegate. To print the string I use print(UIPasteboard.general.string!) but it works only into the function and it doesn't in the other nested…
user8605192
1
vote
1 answer

How to continue download multiple files (AWS server images) in background in react-native iOS

I created an app where user can download multiple images on one click using react-native-fs which is working perfectly in Android. But in iOS when app is inactive then download stopped and user have to start download…
1
vote
1 answer

how to check what is killing my audio amplifier app? (ios, objective C)

I have an ios app that takes audio from the phone microphone, performs some processing on the mic data in real time and sends the result to headphones In Project -> Capabilities -> Background modes, I have selected Audio, AirPlay and Picture in…
user13267
  • 6,871
  • 28
  • 80
  • 138
1
vote
1 answer

Perform task (code execution/ network call) in background when user enters/exits a location region in iOS

System: In my application, I am using geofencing (monitoring a region). Whenever user enters or exits the monitored area or region, the app shows a local notification if the app is in the background or even terminated. This is working perfectly…
Ankush
  • 2,405
  • 3
  • 22
  • 45
1
vote
2 answers

React-native: Execute post request after 20 seconds, even if app goes on backgound

When app runs in foreground, i execute successfully a POST-request using setTimeout with 20 seconds like this: setTimeout(function() { /*POST request is done here*/ }, 20000); Though, if in meanwhile user places the app on background, by pressing…
1
vote
1 answer

If I have location services turned on then how can my app get killed when it enters background mode?

My app is getting killed when it's in the background. However my app is constantly kept alive in the background for locationTracking purposes. I've spoken to users who have experienced this issue and they're saying that their locationTracking is…
mfaani
  • 33,269
  • 19
  • 164
  • 293
1
vote
1 answer

Background location service stops working in a period of time

I'm developing an iOS application that users can save their traveling route to server (by posting their locations through API). The issue I am struggling with is several users reported that the route they saved is interrupted in the middle of the…
thy.nguyen
  • 130
  • 1
  • 8
1
vote
1 answer

AudioQueueServices playback in background not working

Using AudioQueueServices to play a streaming MP3 file, the player stops when the app is switched to the background. I have: On the "Background Modes" panel of the "Capabilities" project settings page, I've turned on "Audio, AirPlay and Picture in…
Jules
  • 14,841
  • 9
  • 83
  • 130
1
vote
0 answers

Background task is executed only when the iPhone is connected to a system(any OS: Windows, Mac or Ubuntu) but not otherwise

The app is in background and it receives a callback upon disconnection with the BLE device, after which the app has to wait for sometime(1minute) and then execute some piece of code. The app behaves as expected even when in the background and is…
1
vote
0 answers

App not starting from killed state using silent notification

I want to update user location to server when silent notification is received. I had enabled push notification and background mode as remote notification and location. But my -(void)application:(UIApplication *)application…
1
vote
0 answers

iOS background fetch keeps launching the app

I'm working on an iOS application which had Background Fetch enabled via the Info.plist for around a year. There were multiple versions released with background fetch enabled, but then a few weeks ago the feature that necessitated background fetch…