更新时间:2023-02-26 21:10:08
一旦注册成功推送通知(询问用户是否允许他......)
Once you’ve registered Push Notifications (asked the user if he allows…)
[[UIApplication sharedApplication] registerForRemoteNotificationTypes: (UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];
您可以检查启用什么类型的推送通知:
you can check what types of push notifications are enabled:
UIRemoteNotificationType enabledTypes = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];
我希望这是你想要的...
I hope this is what you want…