iOS的推送通知 [英] iOs Push Notifications

查看:108
本文介绍了iOS的推送通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法知道在设备上或使用,使用已经通过进入设置 - >通知 - > MyApp的并把一切都关掉了进展,打开了关闭通知针对特定应用的苹果反馈服务?
我需要一个纲领性的方式做到这一点无论是在使用Objective-C设备itsels或通过推反馈服务。
感谢所有。

Is there a way to know on the device or by using apple feedback service that the use has gone ahead and turned the Notifications off for the specific application by going into Settings->Notifications->MyApp and turning everything off? I need a programmatic way to do this either in the device itsels using Objective-C or by using push feedback service. thanks to all.

推荐答案

是的,你可以使用这样的:

Yes you can use this:

UIRemoteNotificationType enabledNotifications = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];

根据文档,这将返回:位掩码,其值表明通知类型的用户请求的应用。为有效位掩码值见UIRemoteNotificationType。

和检查类型:<一href=\"http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIApplication_Class/Reference/Reference.html\"相对=nofollow> UIApplication类参考

这篇关于iOS的推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆