iOS8 background fetch issue

孤人 提交于 2019-12-10 14:57:54

问题


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'


回答1:


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


来源:https://stackoverflow.com/questions/26038925/ios8-background-fetch-issue

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!