I've developed one application in that i've implemented push notification. I am not receiving any push notification for iOS 10 devices. I have checked the device token and certificate in my server.
This registration seems to be successful even on iOS 10 since Application didRegisterForRemoteNotificationsWithDeviceToken
is then called, so I am receiving a token from APNS.
The problem is that when I send a push notification to this device, Application didReceiveRemoteNotification
is never called.
Now, here it is said that the methods on UIApplicationDelegate
is deprecated on iOS 10 and I should implement userNotificationCenter(:didReceive:withCompletionHandler:)
and userNotificationCenter(:willPresent:withCompletionHandler:)