在IOS 7推送通知设置 [英] Push Notification settings in IOS 7
本文介绍了在IOS 7推送通知设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何检查是否启用PushNotification申请?
How to check if PushNotification for application is enabled ?
我知道我们可以通过设置 - >通知。
I knew we can change the push notification settings for application via settings->notification.
下面如何在IOS 7检查这在app code?
Here how to check this in appcode in IOS 7?
推荐答案
一旦注册成功推送通知(询问用户是否允许他......)
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…
这篇关于在IOS 7推送通知设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文