ios 可以收到消息但是收不到推送

registrationid
ios
jpush
cordova
收不到消息
标签: #<Tag:0x00007fb83b412468> #<Tag:0x00007fb83b4122d8> #<Tag:0x00007fb83b412198> #<Tag:0x00007fb83b412008> #<Tag:0x00007fb83b411e78>

(Coulee) #1

先在这谢谢客官看我发的帖子。
我是cordova集成的,在android端是没有问题的。一切OK

-------问题-------
IOS中问题如下描述
1、有registrationid
2、在JPUSH后台推送的时候,选择对应的registrationid也显示有1个用户
3、推送的自定义消息可以收到
4、开发环境和生产环境都收不到通知
但是就是收不到推送

以下是xcode的输出日志

2018-10-18 20:14:59.496935+0800 ShaJiaBangJGT[2705:223960]  | JIGUANG | D - [JIGUANGService] Action - JPUSH begin Setup with appkey:9e9f6356cd92bd5f3684ba79 channel:channel name isProduction:FALSE advertisingIdentifier: 
2018-10-18 20:14:59.520980+0800 ShaJiaBangJGT[2705:223960]  | JIGUANG | I - [JIGUANGService] 
2018-10-18 20:14:59.521235+0800 ShaJiaBangJGT[2705:223960]  | JIGUANG | I - [JIGUANGClientController] Action - jpush setup
2018-10-18 20:14:59.521383+0800 ShaJiaBangJGT[2705:223962]  | JIGUANG | I - [JIGUANGClientController] Action - setup
2018-10-18 20:14:59.523588+0800 ShaJiaBangJGT[2705:223960]  | JIGUANG | E - [JIGUANGClientController] load aps evi error, no em provisi2018-10-18 20:14:59.523829+0800 ShaJiaBangJGT[2705:223962]  | JIGUANG | D - [JIGUANGUserDefaultsController] read from old keychain data
2018-10-18 20:14:59.526942+0800 ShaJiaBangJGT[2705:223963]  | JIGUANG | D - [JIGUANGUserDefaultsController] no old content, set new appKey
2018-10-18 20:14:59.563763+0800 ShaJiaBangJGT[2705:223963]  | JIGUANG | D - [JIGUANGPageFlow] trySetupSession
2018-10-18 20:14:59.566589+0800 ShaJiaBangJGT[2705:223960]  | JIGUANG | D - [JIGUANGPageFlow] setupSession
2018-10-18 20:14:59.569533+0800 ShaJiaBangJGT[2705:223963]  | JIGUANG | D - [JIGUANGPageFlow] resetCurrentPage
2018-10-18 20:14:59.727045+0800 ShaJiaBangJGT[2705:223962]  | JIGUANG | W - [JIGUANGService] 请将JPush的初始化方法,添加到[UIApplication application: didFinishLaunchingWithOptions:]方法中,否则JPush将不能准确的统计到通知的点击数量。参考文档:https://docs.jiguang.cn/jpush/client/iOS/ios_guide_new/#_6
2018-10-18 20:15:00.000892+0800 ShaJiaBangJGT[2705:224008]  | JIGUANG | D - [JIGUANGService] Action - registerDeviceToken: <01b43a27 302e4dac 34155ae6 9b149692 a1f3bb3a aed71f14 cdebb712 22c4c937>
2018-10-18 20:15:00.001212+0800 ShaJiaBangJGT[2705:223961]  | JIGUANG | D - [JIGUANGUserDefaultsController] Action - setCurrentDeviceToken - 01b43a27302e4dac34155ae69b149692a1f3bb3aaed71f14cdebb71222c4c937
2018-10-18 20:15:00.001406+0800 ShaJiaBangJGT[2705:224008]  | JIGUANG | D - [JIGUANGNetworkController] Action - trySetupSession
2018-10-18 20:15:00.001566+0800 ShaJiaBangJGT[2705:223961]  | JIGUANG | D - [JIGUANGHttpSessionController] Action - setupSessio2018-10-18 20:15:00.001746+0800 ShaJiaBangJGT[2705:224008]  | JIGUANG | D - [JIGUANGNetworkController] userDefaut verified: 1, curNetworkStatus: 2
2018-10-18 20:15:00.001912+0800 ShaJiaBangJGT[2705:223961]  | JIGUANG | D - [JIGUANGUtilities] JCOREPostN2018-10-18 20:15:00.002069+0800 ShaJiaBangJGT[2705:224008]  | JIGUANG | D - [JIGUANGSessionController] Action - connect
 JIGUANG | D - [JIGUANGSessionController] Action - isSisOnProtect
2018-10-18 20:15:00.002367+0800 ShaJiaBangJGT[2705:224008]  | JIGUANG | D - [JIGUANGSessionController] sis is not on protect
IGUANG | D - [JIGUANGSessionController] Action - reset sis cache
2018-10-18 20:15:00.002660+0800 ShaJiaBangJGT[2705:224008]  | JIGUANG | D - [JIGUANGAddressController] 开始Sis解析
2018-10-18 20:15:00.003172+0800 ShaJiaBangJGT[2705:223961]  | JIGUANG | D - [JIGUANGAddressController] Action - sendSisRequest
2018-10-18 20:15:00.005824+0800 ShaJiaBangJGT[2705:224008]  | JIGUANG | D - [JIGUANGAddressController] get address :124.202.138.30 from host : s.jpush.cn
2018-10-18 20:15:00.005993+0800 ShaJiaBangJGT[2705:223961]  | JIGUANG | D - [JIGUANGAddressController] Action - sendSisRequest:toDefaultPort
2018-10-18 20:15:00.006204+0800 ShaJiaBangJGT[2705:224008]  | JIGUANG | D - [JIGUANGUdpSocket] close udp socket,info:
2018-10-18 20:15:00.014800+0800 ShaJiaBangJGT[2705:224008]  | JIGUANG | D - [JIGUANGUdpSocket] send udp data
2018-10-18 20:15:00.015052+0800 ShaJiaBangJGT[2705:223961]  | JIGUANG | D - [JIGUANGUdpSocket] send udp data succeed
2018-10-18 20:15:00.015241+0800 ShaJiaBangJGT[2705:224008]  | JIGUANG | D - [JIGUANGUdpSocket] udp socket begin send behavior
2018-10-18 20:15:00.519573+0800 ShaJiaBangJGT[2705:224033]  | JIGUANG | D - [JIGUANGService] Action - setLogOFF

以下是推送相关的数据

|发送编号|1539865460|
|---|---|
|Message ID|2251806548888347|
|推送方式|立即推送|
|接受对象|Reg.ID:141fe1da9eff3f34989|
|推送内容|141fe1da9eff3f34989|
|推送平台|ios|
|Extras|{"ios":{"sound":"default","badge":1}}|
|标题(title)||
|副标题(subtitle)||
|通知声音(sound)|"default"|
|应用角标(badge)|1|
|推送结果|已发送|

下面是生产环境下的推送

|发送编号|1539866222|
|---|---|
|Message ID|29273404314269460|
|推送方式|立即推送|
|接受对象|Reg.ID:141fe1da9eff3f34989|
|推送内容|141fe1da9eff3f34989 141fe1da9eff3f34989|
|推送平台|ios-product|
|Extras|{"ios":{"sound":"default","badge":1}}|
|标题(title)||
|副标题(subtitle)||
|通知声音(sound)|"default"|
|应用角标(badge)|1|
|推送结果|已发送|

谢谢了


#2

你这个 registrationID 是生产环境的,你给他推送生产环境的消息他就能收到了

注意一下环境相关的


(Coulee) #3

谢谢回复哈
还要再请教一下。
我在生产环境和开发环境都试过了,都收不到通知


#4

你上传的 token 有问题,token 是开发的,但上报你的 App 的环境是生产的。

用的是 xcode 10 吧?根据这个处理


(Coulee) #6

十分感谢、谢谢