IOS8 background extraction problem

I used background selection in pre ios8 without any problems. But in ios8, when I simulate the background selection on my phone, I first get the error message that I do not have permission to play sound, so I do not receive any local notifications. Then when I open the application, the application crashes, and I get this wierd error:

The application terminated due to the uncaught exception "NSInternalInconsistencyException", reason: "this request has been sterilized - you cannot call -sendResponse: twice and after encoding it

+5
source share
1 answer

This is due to this iOS 8 NSInternalInconsistencyException

Look for the places where you call completion handlers that you get from these methods:

- (void)application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler 
+4
source

Source: https://habr.com/ru/post/1203398/


All Articles