phonegap插件:ios上alias和tags总是返回6002


#3

日志在哪里?插件版本:3.2.12


#4

#5

日志里找到一个这样的内容:: | 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.

但是,即使没有setAlias,是能收到广播通知的,是不是说明证书设置是ok的?


#6

还有这个:: | JIGUANG | D - [JIGUANGReport] send report:(
{
date = “2017-12-12”;
itime = 1513091170;
“session_id” = 0c5024605567f0af243903a490e05558;
time = “23:06:10”;
timezone = “+8”;
type = “active_launch”;
}
) log succed


#7

: | JIGUANG | D - [JIGUANGReport] send report:(
{
activities = (
);
date = “2017-12-12”;
duration = “159.7”;
itime = 1513089562;
“session_id” = 71cffee5db8a22bf84ff5eb2e030c6ea;
time = “22:39:22”;
timezone = “+8”;
type = “active_terminate”;
}
) log succed


#8

报了这个错,如果你registrationID已经取到了,广播能收到,说明报错当时,你网络状态不佳。

后续两个日志是正常的信息上报打印。

1、请切换你的网络,使用 4 G测试。

2、如果还有问题,请给我提供完整的日志,筛选jiguang后完整的提供上来,不要一个个的节选


#9

广播通知能收到,一旦audience的alias指定具体值,就收不到。4g网络也试过了,收不到。下面是完整的日志:

Dec 14 21:57:31 Chenchangs-iPhone reqiqiu[1440] <Notice>:  | JIGUANG | I - [JIGUANGService] 
--------------------------- JPush Log ----------------------------
--------------------JPush SDK Version:3.0.7--build:45----------
--------------------JCore Lib Version:1.1.6--build:29----------
-----------------AppKey:a81fae776477425e50eb1ca5----------------
----------------------------------------------------------------
Dec 14 21:57:31 Chenchangs-iPhone reqiqiu[1440] <Notice>:  | JIGUANG | I - [JIGUANGClientController] Action - jpush setup
Dec 14 21:57:31 Chenchangs-iPhone reqiqiu[1440] <Notice>:  | JIGUANG | I - [JIGUANGClientController] Action - setup
Dec 14 21:57:32 Chenchangs-iPhone reqiqiu[1440] <Notice>:  | JIGUANG | W - [JIGUANGService] \M-h\M-/\M-7\M-e\M-0\M^FJPush\M-g\M^Z\M^D\M-e\M^H\M^]\M-e\M-'\M^K\M-e\M^L\M^V\M-f\M^V\M-9\M-f\M-3\M^U\M-o\M-<\M^L\M-f\M-7\M-;\M-e\M^J\240\M-e\M^H\M-0[UIApplication application: didFinishLaunchingWithOptions:]\M-f\M^V\M-9\M-f\M-3\M^U\M-d\M-8\M--\M-o\M-<\M^L\M-e\M^P\M-&\M-e\M^H\M^YJPush\M-e\M-0\M^F\M-d\M-8\M^M\M-h\M^C\M-=\M-e\M^G\M^F\M-g\M-!\M-.\M-g\M^Z\M^D\M-g\M-;\M^_\M-h\M-.\M-!\M-e\M^H\M-0\M-i\M^@\M^Z\M-g\M^_\M-%\M-g\M^Z\M^D\M-g\M^B\M-9\M-e\M^G\M-;\M-f\M^U\M-0\M-i\M^G\M^O\M-c\M^@\M^B\M-e\M^O\M^B\M-h\M^@\M^C\M-f\M^V\M^G\M-f\M-!\M-#\M-o\M-<\M^Zhttps://docs.jiguang.cn/jpush/client/iOS/ios_guide_new/#_6
Dec 14 21:57:32 Chenchangs-iPhone reqiqiu[1440] <Notice>:  | JIGUANG | D - [JIGUANGPageFlow] trySetupSession
Dec 14 21:57:32 Chenchangs-iPhone reqiqiu[1440] <Notice>:  | JIGUANG | D - [JIGUANGPageFlow] setupSession
Dec 14 21:57:32 Chenchangs-iPhone reqiqiu[1440] <Notice>:  | JIGUANG | D - [JIGUANGUserActiveReport] report content {
    activities =     (
    );
    date = "2017-12-14";
    duration = "51.1";
    itime = 1513259754;
    "session_id" = 0d9909992787517ac5e07289759f62d4;
    time = "21:55:54";
    timezone = "+8";
    type = "active_terminate";
}
Dec 14 21:57:32 Chenchangs-iPhone reqiqiu[1440] <Notice>:  | JIGUANG | D - [JIGUANGHttpSessionController] Action - setupSession
Dec 14 21:57:32 Chenchangs-iPhone reqiqiu[1440] <Notice>:  | JIGUANG | D - [JIGUANGPageFlow] setupSession
Dec 14 21:57:32 Chenchangs-iPhone reqiqiu[1440] <Notice>:  | JIGUANG | D - [JIGUANGPageFlow] resetCurrentPage
Dec 14 21:57:32 Chenchangs-iPhone reqiqiu[1440] <Notice>:  | JIGUANG | D - [JIGUANGUtilities] WWAN \M-d\M-?\M-!\M-f\M^A\M-/:{
    generation = 4g;
    itime = 1513259852;
    "mobile_country_code" = 460;
    "mobile_network_code" = 00;
    "radio_type" = lte;
}
Dec 14 21:57:32 Chenchangs-iPhone reqiqiu[1440] <Notice>:  | JIGUANG | D - [JIGUANGReport] send report:(
        {
        date = "2017-12-14";
        itime = 1513259852;
        "session_id" = 3aea30e48791c384b45a4603835be241;
        time = "21:57:32";
        timezone = "+8";
        type = "active_launch";
    }
) log succed
Dec 14 21:57:32 Chenchangs-iPhone reqiqiu[1440] <Notice>:  | JIGUANG | D - [JIGUANGReport] send report:(
        {
        activities =         (
        );
        date = "2017-12-14";
        duration = "51.1";
        itime = 1513259754;
        "session_id" = 0d9909992787517ac5e07289759f62d4;
        time = "21:55:54";
        timezone = "+8";
        type = "active_terminate";
    }
) log succed
Dec 14 21:57:33 Chenchangs-iPhone reqiqiu[1440] <Notice>:  | JIGUANG | D - [JIGUANGService] Action - setDebugMode
Dec 14 21:57:36 Chenchangs-iPhone reqiqiu[1440] <Notice>:  | 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.
Dec 14 21:57:38 Chenchangs-iPhone reqiqiu[1440] <Notice>:  | 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.
Dec 14 21:57:40 Chenchangs-iPhone reqiqiu[1440] <Notice>:  | 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.
Dec 14 21:57:42 Chenchangs-iPhone reqiqiu[1440] <Notice>:  | 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.
Dec 14 21:57:44 Chenchangs-iPhone reqiqiu[1440] <Notice>:  | JIGUANG | D - [JIGUANGSessionController] remove queued tcp request seq rid 313
Dec 14 21:57:49 Chenchangs-iPhone reqiqiu[1440] <Notice>:  | JIGUANG | D - [JIGUANGSessionController] remove queued tcp request seq rid 315

#10

你的日志里面没有 关于设置别名标签的日志。你只有成功设置了别名和标签,用他们推送才可以收的到。


#11

同样的代码,在安卓上就成功设置了别名和标签,并收到向该别名发的通知。在ios上就报6002。


#12

报超时总有报超时的原因,切换你的网络,看别名报超时前后的日志是否有相关提示


#13

解释不通啊。如果网络不好,为什么只有ios设别名就不好,而且不论什么网络环境都不行;而安卓就是好的,ios广播也是好的,而且不论换哪个网络都是ok的。


#14

代码如下,别名和标签用临时值代表一下。看看有什么问题么?

jPush.init();
jPush.setDebugMode(true);
jPush.setAlias({ sequence: 1, alias: ‘111111111’ })
.then((result) => {})
.catch((error) => {
alert(error.code);
});
jPush.setTags({ sequence: 1, tags: [‘User’, ‘Male’] })
.then((result) => {})
.catch((error) => {
alert(error.code);
});


#15

你得给日志,你测试得到的完整的日志,要说代码,我们example的代码在我们这里测试,是完全正常的,那拿到你那里去正常吗?


#16

再看看下面的日志,是什么错误。getRegistrationId总是返回空值,init之后间隔了1s、3s都一样。

Dec 21 22:58:19 Chenchangs-iPhone reqiqiu[619] <Notice>:  | JIGUANG | D - [JIGUANGService] Action - JPUSH begin Setup with appkey: channel:channel name isProduction:FALSE advertisingIdentifier:
Dec 21 22:58:19 Chenchangs-iPhone reqiqiu[619] <Notice>:  | JIGUANG | E - [JIGUANGAlert] ERROR
\M-b\M^@\M^\\M-b\M^@\M^]\M-d\M-8\M^M\M-f\M^X\M-/\M-e\M^P\M^H\M-f\M-3\M^U\M-g\M^Z\M^DAPP_KEY\M-c\M^@\M^B
\M-o\M-<\M^H\M-f\M^\\M^I\M-e\M^E\M-3APP_KEY\M-g\M^Z\M^D\M-h\M-/\M-4\M-f\M^X\M^N\M-h\M-/\M-7\M-e\M^O\M^B\M-h\M^@\M^C\M-e\M-<\M^@\M-e\M^O\M^Q\M-f\M^V\M^G\M-f\M-!\M-#\M-b\M^@\M^\SDK\M-i\M^[\M^F\M-f\M^H\M^P\M-f\M^L\M^G\M-e\M^M\M^W\M-b\M^@\M^]\M-c\M^@\M^Bhttps://docs.jiguang.cn/jpush/client/iOS/ios_guide_new/
Dec 21 22:58:19 Chenchangs-iPhone reqiqiu[619] <Notice>:  | JIGUANG | E - [JIGUANGService] \M-h\M-/\M-7\M-f\M-#\M^@\M-f\M^_\M-%"setupWithOption:appKey:channel:apsForProduction:"\M-f\M^V\M-9\M-f\M-3\M^U\M-g\M^Z\M^D\M-e\M^O\M^B\M-f\M^U\M-0\M-e\M^@\M-<
Dec 21 22:58:20 Chenchangs-iPhone reqiqiu[619] <Notice>:  | JIGUANG | D - [JIGUANGService] Action - setDebugMode
Dec 21 22:58:21 Chenchangs-iPhone reqiqiu[619] <Notice>:  | JIGUANG | D - [JIGUANGService] Action - registrationID

#17

现在新版本的phonegap插件提供了注册成功事件,用他去监听一下。


#18

监听了,事件没有被触发。此外,setAlias和setTags调用了,为什么都没有日志。
日志里的[JIGUANGAlert]说不是合法的APP_KEY。前些天都不会出现这个,怎么突然报这个错了。和官网上创建的应用信息核对过了,是正确的诶。

Dec 24 22:10:39 Chenchangs-iPhone reqiqiu[1224] <Notice>:  | JIGUANG | D - [JIGUANGService] Action - JPUSH begin Setup with appkey: channel:channel name isProduction:FALSE advertisingIdentifier:
Dec 24 22:10:39 Chenchangs-iPhone reqiqiu[1224] <Notice>:  | JIGUANG | E - [JIGUANGAlert] ERROR
\M-b\M^@\M^\\M-b\M^@\M^]\M-d\M-8\M^M\M-f\M^X\M-/\M-e\M^P\M^H\M-f\M-3\M^U\M-g\M^Z\M^DAPP_KEY\M-c\M^@\M^B
\M-o\M-<\M^H\M-f\M^\\M^I\M-e\M^E\M-3APP_KEY\M-g\M^Z\M^D\M-h\M-/\M-4\M-f\M^X\M^N\M-h\M-/\M-7\M-e\M^O\M^B\M-h\M^@\M^C\M-e\M-<\M^@\M-e\M^O\M^Q\M-f\M^V\M^G\M-f\M-!\M-#\M-b\M^@\M^\SDK\M-i\M^[\M^F\M-f\M^H\M^P\M-f\M^L\M^G\M-e\M^M\M^W\M-b\M^@\M^]\M-c\M^@\M^Bhttps://docs.jiguang.cn/jpush/client/iOS/ios_guide_new/
Dec 24 22:10:39 Chenchangs-iPhone reqiqiu[1224] <Notice>:  | JIGUANG | E - [JIGUANGService] \M-h\M-/\M-7\M-f\M-#\M^@\M-f\M^_\M-%"setupWithOption:appKey:channel:apsForProduction:"\M-f\M^V\M-9\M-f\M-3\M^U\M-g\M^Z\M^D\M-e\M^O\M^B\M-f\M^U\M-0\M-e\M^@\M-<
Dec 24 22:10:40 Chenchangs-iPhone reqiqiu[1224] <Notice>:  | JIGUANG | D - [JIGUANGService] Action - setDebugMode

#19

需要提供给我完整的日志,你给的日志里面并没有说报错了不是合法的AppKey

首先设置别名有没有回调得看你先有没有继承成功,先监听到注册成功事件,再设置别名标签。


#20

监听了注册事件,始终没触发。


#21

你把完整的客户端日志提供给我。


#22

jpush (52.4 KB)