jpush本地开发环境可以获取regid,但是ad-hoc发布出去,下载安装获取不到devicetoken和regid。


#1

紧急求助!jpush 本地开发环境xcode运行用真机测试可以获取regid,也可以推送。但是ad-hoc发布出去,下载安装后查看客户端log,获取不到devicetoken和regid。log显示Not get deviceToken yet.

使用的是 jpush-phonegap-plugin

是不是我的证书设置问题,求大神解答!!!非常感激!
使用的是 通过 APNs Auth Key 鉴权
如下图,

   [JPUSHService setupWithOption:launchOptions appKey:@"4c90****************02"
                              channel:@"****"
                     apsForProduction:0
                ];

#2

1、发布版本,apsForProduction需要设置为生产
2、出现这个报错的排查步骤


3、提供完整的客户端日志。


#3

已更改 apsForProduction 为1. 再次ad-hoc下载安装,依然获取不了devicetoken。
log 如下

默认 13:24:48.892152 +0800 MyApp | JIGUANG | I - [JIGUANGService]
--------------------------- JPush Log ----------------------------
--------------------JPush SDK Version:3.0.7–build:45----------
--------------------JCore Lib Version:1.1.6–build:29----------
-----------------AppKey:4c90*************c7185402----------------

默认 13:24:48.893051 +0800 MyApp | JIGUANG | I - [JIGUANGClientController] Action - jpush setup
默认 13:24:48.903672 +0800 MyApp | JIGUANG | I - [JIGUANGClientController] Action - setup
默认 13:24:51.701125 +0800 MyApp | JIGUANG | W - [JIGUANGClientController] Not get deviceToken yet. Maybe: your certificate not configured APNs? or current network is not so good so APNs registration failed? or there is no APNs register code? Please refer to JPush docs.
默认 13:24:54.328539 +0800 MyApp | JIGUANG | W - [JIGUANGClientController] Not get deviceToken yet. Maybe: your certificate not configured APNs? or current network is not so good so APNs registration failed? or there is no APNs register code? Please refer to JPush docs.
默认 13:24:55.090671 +0800 MyApp | JIGUANG | W - [JIGUANGClientController] Not get deviceToken yet. Maybe: your certificate not configured APNs? or current network is not so good so APNs registration failed? or there is no APNs register code? Please refer to JPush docs.
默认 13:24:57.093522 +0800 MyApp | JIGUANG | W - [JIGUANGClientController] Not get deviceToken yet. Maybe: your certificate not configured APNs? or current network is not so good so APNs registration failed? or there is no APNs register code? Please refer to JPush docs.
默认 13:24:59.093975 +0800 MyApp | JIGUANG | W - [JIGUANGClientController] Not get deviceToken yet. Maybe: your certificate not configured APNs? or current network is not so good so APNs registration failed? or there is no APNs register code? Please refer to JPush docs.
默认 13:25:45.829214 +0800 MyApp | JIGUANG | D - [JIGUANGService] Action - registrationID
默认 13:26:45.309825 +0800 MyApp | JIGUANG | D - [JIGUANGPageFlow] savePageFlowWithTime
默认 13:43:44.716217 +0800 MyApp | JIGUANG | D - [JIGUANGHttpSessionController] Action - setupSession
默认 13:43:44.716382 +0800 MyApp | JIGUANG | D - [JIGUANGPageFlow] setupSession
默认 13:43:44.716559 +0800 MyApp | JIGUANG | D - [JIGUANGPageFlow] resetCurrentPage
默认 13:43:46.969387 +0800 MyApp | JIGUANG | D - [JIGUANGPageFlow] savePageFlowWithTime
默认 14:49:29.923924 +0800 MyApp | JIGUANG | W - [JIGUANGClientController] Not get deviceToken yet. Maybe: your certificate not configured APNs? or current network is not so good so APNs registration failed? or there is no APNs register code? Please refer to JPush docs.
默认 14:49:32.349663 +0800 MyApp | JIGUANG | W - [JIGUANGClientController] Not get deviceToken yet. Maybe: your certificate not configured APNs? or current network is not so good so APNs registration failed? or there is no APNs register code? Please refer to JPush docs.
默认 14:49:35.705510 +0800 MyApp | JIGUANG | W - [JIGUANGClientController] Not get deviceToken yet. Maybe: your certificate not configured APNs? or current network is not so good so APNs registration failed? or there is no APNs register code? Please refer to JPush docs.
默认 14:49:37.707762 +0800 MyApp | JIGUANG | W - [JIGUANGClientController] Not get deviceToken yet. Maybe: your certificate not configured APNs? or current network is not so good so APNs registration failed? or there is no APNs register code? Please refer to JPush docs.
默认 14:50:55.608164 +0800 MyApp | JIGUANG | D - [JIGUANGService] Action - registrationID

我只有在开发环境才能正常获取regid。 一ad-hoc发布出去就不行 代码是一样的


#4

根据这个排查一下