Reputation: 10108
I want to use iOS7's Background Fetch functionality in order to ping the server once a day. I don't want to pull any new data - but I just want to know the app is still installed on the phone.
I can enable Background Fetch, set a Minimum Background Fetch Interval of 24 hours and always return UIBackgroundFetchResultNoData
to the completionHandler
.
I don't need it to be at an exact time each day. Once a day is more than enough.
Will Apple approve my app on the App Store? Can I rely on the iOS to wake my app at least once a day and perform this action? I'm afraid that if the answer will always be UIBackgroundFetchResultNoData iOS will stop waking my app.
Upvotes: 1
Views: 332
Reputation: 10108
Looks like Background Fetch and Remote Notifications WILL NOT work if your app was killed by the user.
According to the UIApplicationDelegate Protocol Reference:
However, the system does not automatically launch your app if the user has force-quit it. In that situation, the user must relaunch your app or restart the device before the system attempts to launch your app automatically again.
Upvotes: 1