How to get the device token from new xCode 8, Swift 3 in iOS 10?
Here is the code to register notification:
This method may solve your problem in iOS 10 and greater:
func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) { var token = "" for i in 0..