Checking if your app is already registered for Push Notification
suggest changeSwift
let isPushEnabled = UIApplication.sharedApplication().isRegisteredForRemoteNotifications()
This reports whether the app is registered for remote notifications. It does not tell you whether the user authorized alerts, sounds, or badges.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents