NatwarAnil
NatwarAnil

Reputation: 31

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 didfinishlaunching is called. Because of this when I launch my app first screen of the app comes in. I have captured the logs.Following is the logs when app goes in background:

New Line Time: 2018-02-02 12:37:39 +0000, applicationDidEnterBackground -----

New Line Time: 2018-02-02 12:37:39 +0000, stop tracking in background

New Line Time: 2018-02-02 12:40:35 +0000, backgroundTaskIdentifier finished -----

New Line Time: 2018-02-02 12:45:50 +0000, didfinishlaunching

Upvotes: 0

Views: 61

Answers (0)

Related Questions