Reputation: 1003
the Doc says that the handler block will not be delivered when the app is suspended.But what I want to do is to get user motion activity background and give user a local notification at some time.Any other solutions or which background mode should help?
Upvotes: 0
Views: 568
Reputation: 1323
You can use location updates background mode to keep your application alive in background.
NSLocationAlwaysUsageDescription
in your plist file.Background Modes
and inside that enable Location Updates
NOTE: This can get your app rejected by apple so make sure you also have some use of location updates in your app.
Upvotes: 1