检查你的应用是否已注册推送通知

迅速

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