1) 我的plist配置提供背景模式:
<key>UIBackgroundModes</key>
<array>
<string>fetch</string>
</array>
2) 在didFinishLaunchingWithOptions
年中,我有:
[[UIApplication sharedApplication] setMinimumBackgroundFetchInterval:1.0];
3) 我在代表大会上宣布了协议UIApplicationDelegate
.
4) I implemented the following method, but it never gets fired. (It only works if I simulate the fetch with "XCode->Debug->Simulate Background Fetch".)
-(void)application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
为什么?这是DP5测试版的错误吗?我应该用雷达探测吗?