ApplicationDidReceiveRemoteNotification is not called on iPhone 7 in the background

I want to set a local notification when I receive a remote notification, and the application is in the background. This works fine when I have an iPhone 7 device connected to xcode, but as soon as I disconnect the device and then put the application in the background, the local notification does not work, and this is due to the fact that applicationDidReceiveRemoteNotification is not called (I checked it by setting the flag in UserDefaults in the same method that has not yet been set). The same procedure, when it is performed on iPhone 6 and 6, works great both when connected and when there is no connection to xcode. The iOS version on iPhone 7 was 10.2.1, and then upgraded to 10.3.1, and it did not work on both versions. Thank.

+4
source share
1 answer

Got a response from Apple. This point caused the problem:

push- (, , , , ) , iOS , . , , , ( 10). , , , , , , .

, : , , , push-.

+2

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


All Articles