1、应用在前台能收到推送,杀死进程或者应用在后台收不到推送
应用在前台是走mobpush通道,杀死进程或者应用在后台走APNs通道
原因一:推送设置环境和应用的环境不一致
解决方案:


app是debug模式时,iosProduction参数传0
原因二:证书配置问题
解决方案:


以上两个地方的证书配置要一致
原因三:APNs接口设置错误
#ifdef DEBUG
[MobPush setAPNsForProduction:NO];
#else
[MobPush setAPNsForProduction:YES];
#endif
// 这样 写 测试环境下 的参数传NO,生产环境 传YES
原因四:Xcode 配置错误


网友评论