0
这就是我们如何注册本地通知注册为本地和远程通知
if UIApplication.instancesRespondToSelector(Selector("registerUserNotificationSettings:")) {
UIApplication.sharedApplication().registerUserNotificationSettings(UIUserNotificationSettings(forTypes: [UIUserNotificationType.Alert, UIUserNotificationType.Badge, UIUserNotificationType.Sound], categories: nil));
}
我们如何做同样的远程? 我们可以注册一次并为两者工作吗?