0
這就是我們如何註冊本地通知註冊爲本地和遠程通知
if UIApplication.instancesRespondToSelector(Selector("registerUserNotificationSettings:")) {
UIApplication.sharedApplication().registerUserNotificationSettings(UIUserNotificationSettings(forTypes: [UIUserNotificationType.Alert, UIUserNotificationType.Badge, UIUserNotificationType.Sound], categories: nil));
}
我們如何做同樣的遠程? 我們可以註冊一次併爲兩者工作嗎?