iOS 13 Background Tasks Not working in Release Mode

Viewed 877

I tried to use the iOS 13 background tasks, with the Apple Example:

https://developer.apple.com/documentation/backgroundtasks/refreshing_and_maintaining_your_app_using_background_tasks

But the application works perfectly fine if i use in debug mode(Using the below apple commands provided)

https://developer.apple.com/documentation/backgroundtasks/starting_and_terminating_tasks_during_development

On a release mode(with out console commands) not even once triggered the background tasks, i tried

  1. Connecting the application to Xcode with breakpoints.
  2. Giving a local notification when background tasks trigger.
  3. Using Userdefaults to keep count of number of Event Triggers.

None of them gave me an answer, Tried for whole day.

So wanted to understand, if any one has used iOS 13 background tasks, could please help me guide what im missing.

Thanks.

0 Answers
Related