在做Push获取设备device Token是提示如下:
registerForRemoteNotificationTypes: is not supported in iOS 8.0 and later.
解决办法:
之前注册启用Push的代码是:
现改为如下:
// IOS8新系统需要使用新的代码咯
if([[[UIDevice currentDevice]systemVersion]floatValue] >=8.0){
[[UIApplication sharedApplication] registerUserNotificationSettings:[UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeSound|UIUserNotificationTypeAlert|UIUserNotificationTypeBadge) categories:nil]];
[[UIApplication sharedApplication] registerForRemoteNotifications];
}else{
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeAlert|UIRemoteNotificationTypeSound|UIRemoteNotificationTypeBadge)];
}
- 大小: 10.1 KB
- 大小: 17.4 KB
- 大小: 64.6 KB
分享到:
相关推荐
MySQL Cluster is currently not supported in MySQL 8.0. For infor mation about MySQL Cluster, please see MySQL NDB Cluster 7.5 and NDB Cluster 7.6. MySQL 8.0 features. This manual describes features ...
MySQL Cluster is currently not supported in MySQL 8.0. For information about MySQL Cluster, please see MySQL NDB Cluster 7.5 and NDB Cluster 7.6. MySQL 8.0 features. This manual describes features...
MySQL Cluster is currently not supported in MySQL 8.0. For information about MySQL Cluster, please see MySQL NDB Cluster 7.5 and NDB Cluster 7.6. MySQL 8.0 features. This manual describes features...
MySQL Community Edition is a freely downloadable version of the world's most popular open source database that is supported by an active community of open source developers and enthusiasts.
MySQL Community Edition is a freely downloadable version of the world's most popular open source database that is supported by an active community of open source developers and enthusiasts.
MySQL Cluster is currently not supported in MySQL 8.0. For information about MySQL Cluster, please see MySQL NDB Cluster 7.5 and NDB Cluster 7.6. MySQL 8.0 features. This manual describes features ...
解决SVN上传提示Empty directoriesis not supported 解决SVN上传提示Empty directoriesis not supported
django 设置settings.py,本文以mysql 为例,说明怎样配置mysql d的连接
解决部分视频不能播放并提示,File is unplayable. Color space is not supported.文件无法播放。不支持颜色空间。
Oliver Drobnik is an independent consultant specializing in custom iOS and Mac development. Table of Contents Chapter 1. Barcodes, iOS, and you Chapter 2. Media capture with AV Foundation Chapter 3. ...
测试可用 用于ver.10.0.19041.2913“not supported” 执行rdpwrap_ini_updater.bat
Earlier versions of Delphi and C++ Builder will not be supported. If you need Delphi 3 or C++ Builder 3 support you will have to revert to version 3.7 of the Drag and Drop Component Suite. The ...
这原本可以通过rdpWrap实现支持,但rdpWrap没持续更新,win10更新后就会产生listener state not supported 问题。当前上传版本解决了此问题,在64位win10.0.19042.1052上测试正常。 解压后双击 安装.bat 进行安装 ...
mysql操作手册。This is the MySQL™ Reference Manual....MySQL Cluster is currently not supported in MySQL 8.0. For information about MySQL Cluster, please see MySQL NDB Cluster 7.5 and NDB Cluster 7.6.
Swift is still evolving, but Apple clearly sees it as the future language of choice for iOS and OS X software development. Topics include: Supported data types, such as strings, arrays, array ...
iOS 8 has shown improved support for amazing features which were not supported in iOS 7. This explains the need for the creation of iOS 8 apps, and therefore the need to learn Swift. Here is a ...
+ Supported local video file playback, main formats: 3GPP (.3gp), AVI (.avi), FLV (.flv), SWF (.swf), M4V (.m4v), Matroska (.mkv), Ogg Video (.ogg), QuickTime File Format (.mov, .qt), WebM (.webm), ...
java解决405 - HTTP method GET is not supported by this URL