apsForProduction选项问题,导致前后端配置不同,接收不到信息.

hehe12345
2017-09-11 02:09 1.6k 0

[JPUSHService setupWithOption:launchOptions appKey:KEY_PUSH
channel:nil
apsForProduction:NO
advertisingIdentifier:nil];

apsForProduction这个选项在 release 环境是不是自动设置成YES了?

我们代码中写的是 NO, 但是上线以后自动变成 YES 了,导致跟我们的后台配置对不上,

1个回答

热门排序
  • 客户端的环境与证书有关!关于测试两种环境的说明: https://community.jiguang.cn/article/57171 API推送消息给iOS,需要指定推送的环境!请让后台修改apns_production,false是开发 展示全部