在IOS 7中推送通知设置

时间:2013-08-29 11:07:25

标签: ios push-notification apple-push-notifications ios7

如何检查应用程序的PushNotification是否已启用?

我知道我们可以通过设置>通知更改应用程序的推送通知设置。

如何在IOS 7中的appcode中查看此内容?

1 个答案:

答案 0 :(得分:4)

一旦您注册了推送通知(询问用户是否允许......)

[[UIApplication sharedApplication] registerForRemoteNotificationTypes: (UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];

您可以查看启用了哪些类型的推送通知:

UIRemoteNotificationType enabledTypes = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];

我希望这就是你想要的......