iOS8 background fetch issue

2019-06-22 15:47发布

I have used background fetch in pre ios8 without a problem. But in ios8 when i simulate background fetch on my phone i first get an error that i do not have permission to play sound therefore i do not get any local notifications. Then upon opening the app, the app crashes and i get this wierd error:

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'this request has been neutered - you can't call -sendResponse: twice nor after encoding it'

标签: ios8
1条回答
Anthone
2楼-- · 2019-06-22 16:21

It is related to this iOS 8 NSInternalInconsistencyException

Look for places where you call completion handlers you get from methods like this:

- (void)application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler
查看更多
登录 后发表回答