Swift
let isPushEnabled = UIApplication.sharedApplication().isRegisteredForRemoteNotifications()