ios8 远程推送的注册代码
来源:互联网 发布:石田电子称软件 编辑:程序博客网 时间:2024/06/10 02:12
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0){
[[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge) categories:nil]]; [[UIApplication sharedApplication] registerForRemoteNotifications];
}else
{
[[UIApplication sharedApplication] registerForRemoteNotificationTypes: (UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationTypeAlert)];
}
[[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeSound | UIUserNotificationTypeAlert | UIUserNotificationTypeBadge) categories:nil]]; [[UIApplication sharedApplication] registerForRemoteNotifications];
}else
{
[[UIApplication sharedApplication] registerForRemoteNotificationTypes: (UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationTypeAlert)];
}
0 0
- ios8 远程推送的注册代码
- iOS8的远程推送
- iOS8下的远程推送
- iOS8 兼容 请求开启远程推送代码
- iOS8 兼容 请求开启远程推送代码
- iOS8.0推送通知的注册方法
- iOS8注册推送失败的探究
- iOS8 注册推送
- iOS8注册推送
- ios8注册推送通知
- IOS8注册推送消息
- ios8下的远程推送通知
- 在iOS8之后的远程推送写法
- iOS8远程推送
- ios8远程推送
- iOS开发----iOS8 注册推送
- iOS8推送消息、注册通知
- ios8 注册本地推送通知
- 几种地图投影方式
- JS 判断滚动条到底部的JS代码
- rubymine 入门简单例子教程
- 正式入驻CSDN
- java.lang.NoSuchMethodException: com.sun.proxy.$Proxy
- ios8 远程推送的注册代码
- c1 驾考成都龙岗科目三考试经验
- 免安装版apache注册window服务
- 论文图片编辑
- Why is machine learning used heavily for Google's ad ranking and less for their search ranking?
- CUnit详解(基于linux下的白盒单元测试)
- LCS的两种解法比较
- 多个applicationContext.xml互相引用
- POI导入导出Excel模板···