iOS 推送
来源:互联网 发布:营销软件破解论坛 编辑:程序博客网 时间:2024/06/10 02:13
UIApplication *application = [UIApplication sharedApplication];
application.applicationIconBadgeNumber = 0;
//iOS8注册APNS
if ([application respondsToSelector:@selector(registerForRemoteNotifications)]) {
[application registerForRemoteNotifications];
UIUserNotificationType notificationTypes = UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationTypeAlert;
UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:notificationTypes categories:nil];
[application registerUserNotificationSettings:settings];
}else{
UIRemoteNotificationType notificationTypes = UIRemoteNotificationTypeBadge |
UIRemoteNotificationTypeSound |
UIRemoteNotificationTypeAlert;
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:notificationTypes];
}
- iOS推送 (百度推送)
- iOS推送 (百度推送)
- iOS- 推送极光推送
- iOS推送
- IOS推送
- ios推送。。。
- IOS推送
- ios 推送
- IOS 推送
- iOS推送
- IOS推送
- IOS推送
- IOS推送
- IOS推送
- iOS 推送
- ios推送
- iOS 推送
- IOS推送
- arcgis api for javascript 定义layerinfo2种方式
- Java内部类总结
- 关于++i 与 i++等诸如问题
- iPhone开发 判断当前的网络是3g还是wifi
- 可扩展hdfs——HDFS Federation(HDFS 联盟)介绍
- iOS 推送
- poj-1258 Agri-Net
- 【Delphi】Hint提示信息
- 从索引技术谈数据库查询索引建立和查询条件书写
- MFC treeview控件不同的节点显示不同的图标方法
- Java中的ReentrantLock和synchronized两种锁定机制的对比
- UVa-11624
- 侦听UIButton事件
- 优美语句