1) My plist configuration provides backgroundmode:
<key>UIBackgroundModes</key> <array> <string>fetch</string> </array>
2) In didFinishLaunchingWithOptions I:
[[UIApplication sharedApplication] setMinimumBackgroundFetchInterval:1.0];
3) I declared the UIApplicationDelegate protocol in the delegate.
4) I applied the following method, but it never starts. (It only works if I simulate a selection using "Xcode-> Debug-> Simulate Background Fetch.")
-(void)application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
Why? Is this a DP5 beta bug? Do I have to radar this?
ios objective-c ios7
user2068793 Aug 19 '13 at 14:02 2013-08-19 14:02
source share