不调用- (void)application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken的原因

简介: 一般-(void)application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken不调用的原因有如下几种:1、证书原因检查证书是否失效2、设置中没有打开通知的开关这是最常见的错误,首先要检查的就是这个。

一般
-(void)application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
不调用的原因有如下几种:
1、证书原因
检查证书是否失效
2、设置中没有打开通知的开关
这是最常见的错误,首先要检查的就是这个。
3、代码问题

  • 看这个方法是否被重写了
  • 通知是否正确配置
  • 重写didFailToRegisterForRemoteNotificationsWithError这个方法,查看错误信息是什么。
目录
相关文章
|
6月前
|
存储 机器学习/深度学习 搜索推荐
什么是Data Centric Application?
什么是Data Centric Application?
39 0
|
4月前
|
小程序 API 定位技术
【uni-app报错】选择地址:fail the api need to be declared in the requiredPrivateInfos field in app/ext.json
【uni-app报错】选择地址:fail the api need to be declared in the requiredPrivateInfos field in app/ext.json
116 0
app.json 文件内容错误] app.json: [“usingComp<van-icon name=“https://b.yzcdn.cn/vant/icon-demo-1126.png“ />
app.json 文件内容错误] app.json: [“usingComp<van-icon name=“https://b.yzcdn.cn/vant/icon-demo-1126.png“ />
error LNK2005: 已经在 app_launcher.obj 中定义
error LNK2005: 已经在 app_launcher.obj 中定义
76 0
|
Kotlin
【错误记录】布局组件加载错误 ( Attempt to invoke virtual method ‘xxx$Callback android.view.Window.getCallback()‘ )
【错误记录】布局组件加载错误 ( Attempt to invoke virtual method ‘xxx$Callback android.view.Window.getCallback()‘ )
280 0
|
XML 数据格式
when is oData transaction data request sent for an xml view binding case
Created by Wang, Jerry, last modified on May 20, 2015
92 0
when is oData transaction data request sent for an xml view binding case
Could not open app - SAP UI5 error message
Created by Wang, Jerry, last modified on Mar 10, 2015
112 0
Could not open app - SAP UI5 error message
How does model reference pass from app view to master view
Created by Wang, Jerry, last modified on May 21, 2015
How does model reference pass from app view to master view
cannot load SAP UI5 application view S2 useful method for resource load
cannot load SAP UI5 application view S2 useful method for resource load
cannot load SAP UI5 application view S2 useful method for resource load