Xcode 9 (iOS 11) showing me an error/warning while registering for Push (remote) notification.
Here is error message
And here is code, I\'ve tried:<
Hope this will help
DispatchQueue.main.async(execute: { UIApplication.shared.registerForRemoteNotifications() })