Questions tagged [backgroundtaskidentifier]

13 questions
10
votes
1 answer

Background request not execute Alamofire Swift

I'm trying to make calls in background like POST,GET to be more precise in the didReceiveRemoteNotification method, because they start to work as a push notification arrive. My problem is that all the Alamofire.request are never call in Background…
5
votes
1 answer

Does anyone know how to solve with BackgroundTask issues in swift?

I am using background task inside my app after updating my iPad to iOS 13 my application issuing this: Can't end BackgroundTask: no background task exists with identifier > 13 (0xd), or it may have already been ended. Break in…
4
votes
2 answers

BGTaskScheduler submit call fails with BGTaskSchedulerErrorDomain code: 1

BGTaskScheduler fails with "BGTaskSchedulerErrorDomain" - code: 1 on iOS 13.0 I have tried the sample program ColorFeed made available by Apple and it faces the same issue let request = BGProcessingTaskRequest(identifier:…
user12315899
  • 41
  • 1
  • 2
2
votes
1 answer

Swift Background Execution

I have a step function on AWS triggered by an HTTP Post request. The function can take a few seconds to complete. I'd like for execution to continue if the user puts the app into the background, and to correctly navigate to the next screen once the…
2
votes
3 answers

TaskIdentifier in NSURLSession not Changing

I am trying to upload multiple videos through NSURLSession in my App. But taskIdentifier for every request is coming same. Its not getting change for every request. How can we keep track for our request? How can we know which one gets complete? This…
1
vote
1 answer

How to perform local backup if iOS app is closed?

My goal is this: perform local backup / copy of some files/folders. My app is an open source Signal app fork from GitHub. a Messaging app. Messages are store in a local database. I need to perform local backup on my iOS app, at least once a day…
1
vote
0 answers

Test flight shows app pop-up without terminating the app (beginBackgroundTask issue)

Some of the tester are getting App crashed pop-up while the app is perfectly working in the foreground. I have implemented crashlytics, but no crash log there. If I ask testers to submit feedback, appstoreconnect only shows device details, no…
Sushil Sharma
  • 2,321
  • 3
  • 29
  • 49
1
vote
1 answer

Swift Background task on applicationWillTerminate

I am using call kit and voip calling. I have case when user is in call and user terminate app from background then I wanted to perform some small operations like leave the calling channel, save the call etc. I have tried following thing but seems…
Prashant Tukadiya
  • 15,838
  • 4
  • 62
  • 98
1
vote
0 answers

What's the difference between UIBackgroundTaskInvalid and endBackgroundTask?

I sometimes see code where the task is ended using bgTaskID = UIBackgroundTaskInvalid At other places I see UIApplication.sharedApplication().endBackgroundTask(bgTaskID) At some other places I see: …
mfaani
  • 33,269
  • 19
  • 164
  • 293
0
votes
0 answers

didfinishlaunching is called when backgroundTaskIdentifier is finished in the background

In my application background mode is enabled because I'm using bluetooth functionality. When I put my app in the background. I'm using UIBackgroundTaskIdentifier to perform task in the background. But When this background task is finished…
NatwarAnil
  • 31
  • 6
0
votes
1 answer

Change rootview controller when app goes to background (applicationDidEnterBackground)

I need to show black screen when user really go to background. (Not applicationWillResignActive). As a result, I am changing my root view controller like this in applicationDidEnterBackground. //Before this, there will be Sync web-service…
Khant Thu Linn
  • 5,905
  • 7
  • 52
  • 120
-1
votes
1 answer

Background modes usage in apps

I'm developing an iOS app that updates data to server every minute. I wants to work this data update even when app goes to background. I've enabled the "Background mode" in "capabilities" and not checked any background options. Also used the below…
Neenu
  • 6,848
  • 2
  • 28
  • 54
-2
votes
1 answer

App is crashing on only iOS 13 in the background mode

The app is crashing only on iOS 13 and when I saw the detailed report, Reports are mentioning the app was in the background when it was crashed. No reference of the line of code mentioned in the crash logs where I can find the line which is causing…