Menu
  • HOME
  • TAGS

Trying to implement beginBackgroundTaskWithExpirationHandler and UILocalNotification

swift,uilocalnotification,uibackgroundtask

In the code sample, the timer you create will only fire once as you have set the "repeats" value to false in the initialiser.

Can't endBackgroundTask: no background task exists with identifier *, or it may have already been ended

ios,objective-c,core-location,uibackgroundtask

So it appears that the following 3 settings should be made in order for background location update to work properly. Do this and fix the problem: Make NSLocationAlwaysUsageDescription key is set (with value as a reason for the permission) in info.plist. Make sure to call [someLocationManager requestAlwaysAuthorization]; when asking for...