Android最近一直收不到推送


(Y🐑) #1

Android最近一直收不到推送,把程序打开也收不到,相反,IOS最近一直可以收到,代码没动过,原来还能收到 最近就是收不到了


#2

收不到消息的问题:请提供推送的消息的msgid(MessageID)和收不到这条消息的设备的registrationID(在客户端获取,无论以何种方式做推送,该信息必须提供)
信息如何获取: 极光产品相关提问简要说明


(Y🐑) #3

MessageID是 996867412,RegistrationID : 1104a897929863e2389


(Y🐑) #4

jpush版本是2.1.9 安卓5.0以上都收不到


#5

我这里查询结果是 消息是已经成功送达到手机上的

请检查手机端的通知提醒设置,是否处于消息盒子里面之类的


(Y🐑) #6

没有啊,的确没有这个,华为的小米的都收不到。但是我模拟器可以收到。


(Y🐑) #7

前段时间还是没有问题,就这段时间,基本上都收不到了


#8

你刚刚给我的设备的registrationID,我查消息是确确实实已经送达的,所以即便没展示,log里面也必然打印了的,我们才会记录为Android送达

1、如果你刚刚registrationID给的不是实际收不到消息的设备的ID,麻烦提供正确的ID

2、阅读:


检测长连接状态、网络状态、看客户端日志


(Y🐑) #9

registrationID这个ID在手机设备上为空,是为什么。有什么办法解决么


#10

1、给我完整的客户端日志
2、


(Y🐑) #11
07-18 10:51:12.655 17379-17379/? E/JPush: [JPushInterface] System.loadLibrary::jpush219java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.im.zhsy-2/base.apk"],nativeLibraryDirectories=[/data/app/com.im.zhsy-2/lib/arm, /system/fake-libs, /data/app/com.im.zhsy-2/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib, /system/vendor/lib, /product/lib]]] couldn't find "libjpush219.so"
07-18 10:51:12.656 17379-17379/? W/System.err: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.im.zhsy-2/base.apk"],nativeLibraryDirectories=[/data/app/com.im.zhsy-2/lib/arm, /system/fake-libs, /data/app/com.im.zhsy-2/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib, /system/vendor/lib, /product/lib]]] couldn't find "libjpush219.so"
07-18 10:51:12.656 17379-17379/? W/System.err:     at cn.jpush.android.api.JPushInterface.init(Unknown Source)
07-18 10:51:12.665 17379-17379/? W/System.err: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.im.zhsy-2/base.apk"],nativeLibraryDirectories=[/data/app/com.im.zhsy-2/lib/arm, /system/fake-libs, /data/app/com.im.zhsy-2/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib, /system/vendor/lib, /product/lib]]] couldn't find "libjpush219.so"
07-18 10:51:12.665 17379-17379/? W/System.err:     at cn.jpush.android.service.PushProtocol.<clinit>(Unknown Source)
07-18 10:51:12.665 17379-17379/? W/System.err:     at cn.jpush.android.service.PushProtocol.GetSdkVersion(Native Method)
07-18 10:51:12.665 17379-17379/? W/System.err:     at cn.jpush.android.e.a(Unknown Source)
07-18 10:51:12.665 17379-17379/? W/System.err:     at cn.jpush.android.e.a(Unknown Source)
07-18 10:51:12.665 17379-17379/? W/System.err:     at cn.jpush.android.api.JPushInterface.init(Unknown Source)
07-18 10:51:12.666 17379-17379/? E/art: No implementation found for int cn.jpush.android.service.PushProtocol.GetSdkVersion() (tried Java_cn_jpush_android_service_PushProtocol_GetSdkVersion and Java_cn_jpush_android_service_PushProtocol_GetSdkVersion__)
07-18 10:51:12.666 17379-17379/? E/JPush: [JPushGlobal] Get sdk version fail![获取sdk版本失败!]
07-18 10:51:12.666 17379-17379/? W/System.err: java.lang.UnsatisfiedLinkError: No implementation found for int cn.jpush.android.service.PushProtocol.GetSdkVersion() (tried Java_cn_jpush_android_service_PushProtocol_GetSdkVersion and Java_cn_jpush_android_service_PushProtocol_GetSdkVersion__)
07-18 10:51:12.666 17379-17379/? W/System.err:     at cn.jpush.android.service.PushProtocol.GetSdkVersion(Native Method)
07-18 10:51:12.666 17379-17379/? W/System.err:     at cn.jpush.android.e.a(Unknown Source)
07-18 10:51:12.666 17379-17379/? W/System.err:     at cn.jpush.android.e.a(Unknown Source)
07-18 10:51:12.666 17379-17379/? W/System.err:     at cn.jpush.android.api.JPushInterface.init(Unknown Source)
07-18 10:51:12.666 17379-17379/? E/JPush: [JPushGlobal] JPush .so file do not match JPush .jar file in the project, Failed to init JPush
07-18 10:51:12.667 17379-17379/? W/JPush: [SharePreferenceProcess] context is null, in SharePreferenceProcess.init
07-18 10:51:12.669 17379-17379/? W/JPush: [SharePreferenceProcess] context is null, in SharePreferenceProcess.init
07-18 10:51:12.950 17476-17476/? E/JPush: [JPushInterface] System.loadLibrary::jpush219java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.im.zhsy-2/base.apk"],nativeLibraryDirectories=[/data/app/com.im.zhsy-2/lib/arm, /system/fake-libs, /data/app/com.im.zhsy-2/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib, /system/vendor/lib, /product/lib]]] couldn't find "libjpush219.so"
07-18 10:51:12.950 17476-17476/? W/System.err: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.im.zhsy-2/base.apk"],nativeLibraryDirectories=[/data/app/com.im.zhsy-2/lib/arm, /system/fake-libs, /data/app/com.im.zhsy-2/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib, /system/vendor/lib, /product/lib]]] couldn't find "libjpush219.so"
07-18 10:51:12.950 17476-17476/? W/System.err:     at cn.jpush.android.api.JPushInterface.init(Unknown Source)
07-18 10:51:12.953 17476-17476/? W/System.err: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.im.zhsy-2/base.apk"],nativeLibraryDirectories=[/data/app/com.im.zhsy-2/lib/arm, /system/fake-libs, /data/app/com.im.zhsy-2/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib, /system/vendor/lib, /product/lib]]] couldn't find "libjpush219.so"
07-18 10:51:12.954 17476-17476/? W/System.err:     at cn.jpush.android.service.PushProtocol.<clinit>(Unknown Source)
07-18 10:51:12.954 17476-17476/? W/System.err:     at cn.jpush.android.service.PushProtocol.GetSdkVersion(Native Method)
07-18 10:51:12.954 17476-17476/? W/System.err:     at cn.jpush.android.e.a(Unknown Source)
07-18 10:51:12.954 17476-17476/? W/System.err:     at cn.jpush.android.e.a(Unknown Source)
07-18 10:51:12.954 17476-17476/? W/System.err:     at cn.jpush.android.api.JPushInterface.init(Unknown Source)
07-18 10:51:12.954 17476-17476/? E/art: No implementation found for int cn.jpush.android.service.PushProtocol.GetSdkVersion() (tried Java_cn_jpush_android_service_PushProtocol_GetSdkVersion and Java_cn_jpush_android_service_PushProtocol_GetSdkVersion__)
07-18 10:51:12.954 17476-17476/? E/JPush: [JPushGlobal] Get sdk version fail![获取sdk版本失败!]
07-18 10:51:12.954 17476-17476/? W/System.err: java.lang.UnsatisfiedLinkError: No implementation found for int cn.jpush.android.service.PushProtocol.GetSdkVersion() (tried Java_cn_jpush_android_service_PushProtocol_GetSdkVersion and Java_cn_jpush_android_service_PushProtocol_GetSdkVersion__)
07-18 10:51:12.954 17476-17476/? W/System.err:     at cn.jpush.android.service.PushProtocol.GetSdkVersion(Native Method)
07-18 10:51:12.954 17476-17476/? W/System.err:     at cn.jpush.android.e.a(Unknown Source)
07-18 10:51:12.954 17476-17476/? W/System.err:     at cn.jpush.android.e.a(Unknown Source)
07-18 10:51:12.954 17476-17476/? W/System.err:     at cn.jpush.android.api.JPushInterface.init(Unknown Source)
07-18 10:51:12.954 17476-17476/? E/JPush: [JPushGlobal] JPush .so file do not match JPush .jar file in the project, Failed to init JPush
07-18 10:51:12.954 17476-17476/? W/JPush: [SharePreferenceProcess] context is null, in SharePreferenceProcess.init
07-18 10:51:12.955 17476-17476/? W/JPush: [SharePreferenceProcess] context is null, in SharePreferenceProcess.init

(Y🐑) #12

这些都是关于jpush的日志,获取的registrationID还是为空,我是在init之后调用的


#13

(Y🐑) #14

这些SO库在哪里下载呢,因为最近集成了一个视频的moudle,然后视频的moudle里也有好多so库,但是jpush以前就没有集成so库进去啊。 一直用的是jar包。


#15

我有些茫然,JPush是一直都有so的,不知道你以前怎么搞的

建议你直接升级SDK版本,根据集成指南重新走一遍

https://docs.jiguang.cn/jpush/client/Android/android_guide/


(Y🐑) #16
07-18 09:16:26.851 666-676/system_process W/BroadcastQueue: Permission Denial: broadcasting Intent { act=android.intent.action.USER_PRESENT flg=0x24000010 } from com.android.keyguard (pid=731, uid=10010) is not exported from uid 10040 due to receiver com.im.zhsy/cn.jpush.android.service.PushReceiver
07-18 09:19:04.321 666-680/system_process I/ActivityManager:   Force stopping service ServiceRecord{4aa20894 u0 com.im.zhsy/cn.jpush.android.service.PushService}
07-18 09:19:05.831 666-1800/system_process I/ActivityManager: Start proc com.im.zhsy for broadcast com.im.zhsy/cn.jpush.android.service.PushReceiver: pid=2628 uid=10040 gids={50040, 1028, 1015, 1023, 3003}
07-18 10:14:11.581 666-1018/system_process I/ActivityManager:   Force stopping service ServiceRecord{4aa1e678 u0 com.im.zhsy/cn.jpush.android.service.PushService}
07-18 10:26:44.061 3429-3784/? W/JPush: [JPushInterface] The builder with id:1 has not been set in your app, use default builder!
07-18 10:38:59.411 666-1800/system_process I/ActivityManager:   Force stopping service ServiceRecord{4b03a22c u0 com.im.zhsy/cn.jpush.android.service.PushService}
07-18 11:18:26.751 4169-4169/com.im.zhsy D/dalvikvm: Trying to load lib /data/app-lib/com.im.zhsy-1/libjpush219.so 0x94fa6d50
07-18 11:18:26.751 4169-4169/com.im.zhsy D/dalvikvm: Added shared lib /data/app-lib/com.im.zhsy-1/libjpush219.so 0x94fa6d50
07-18 11:18:26.771 4169-4169/com.im.zhsy D/dalvikvm: Trying to load lib /data/app-lib/com.im.zhsy-1/libjpush219.so 0x94fa6d50
07-18 11:18:26.771 4169-4169/com.im.zhsy D/dalvikvm: Shared lib '/data/app-lib/com.im.zhsy-1/libjpush219.so' already loaded in same CL 0x94fa6d50
07-18 11:18:26.961 4169-4169/com.im.zhsy W/JPush: [AndroidUtil] You should make main activity extends InstrumentedActivity (JPush), otherwise you will not see user click and user active time start on report in Portal. 
07-18 11:18:27.031 4215-4215/com.im.zhsy:remote D/dalvikvm: Trying to load lib /data/app-lib/com.im.zhsy-1/libjpush219.so 0x94fa7118
07-18 11:18:27.041 4215-4215/com.im.zhsy:remote D/dalvikvm: Added shared lib /data/app-lib/com.im.zhsy-1/libjpush219.so 0x94fa7118
07-18 11:18:27.041 4215-4215/com.im.zhsy:remote D/dalvikvm: Trying to load lib /data/app-lib/com.im.zhsy-1/libjpush219.so 0x94fa7118
07-18 11:18:27.041 4215-4215/com.im.zhsy:remote D/dalvikvm: Shared lib '/data/app-lib/com.im.zhsy-1/libjpush219.so' already loaded in same CL 0x94fa7118
07-18 11:18:28.191 4169-4256/com.im.zhsy W/JPush: [JPushInterface] The builder with id:1 has not been set in your app, use default builder!
07-18 11:19:03.321 666-680/system_process I/ActivityManager:   Force stopping service ServiceRecord{4aa36d98 u0 com.im.zhsy/cn.jpush.android.service.PushService}
07-18 11:19:04.831 666-1018/system_process I/ActivityManager: Start proc com.im.zhsy for broadcast com.im.zhsy/cn.jpush.android.service.PushReceiver: pid=4382 uid=10040 gids={50040, 1028, 1015, 1023, 3003}
07-18 11:19:05.391 4382-4382/? W/JIGUANG-JPush: [AndroidUtil] AndroidManifest.xml missing activity: cn.jpush.android.ui.PopWinActivity
07-18 11:19:05.391 4382-4382/? W/JIGUANG-JPush: [AndroidUtil] You will unable to use pop-window rich push type.
07-18 11:19:05.441 4382-4382/? W/System.err:     at cn.jpush.android.a.a(SourceFile)
07-18 11:19:05.441 4382-4382/? W/System.err:     at cn.jpush.android.api.JPushInterface.init(SourceFile)
07-18 11:19:05.451 4382-4382/? W/System.err:     at cn.jpush.android.a.a(SourceFile)
07-18 11:19:05.451 4382-4382/? W/System.err:     at cn.jpush.android.api.JPushInterface.init(SourceFile)
07-18 11:19:05.461 4382-4382/? W/System.err:     at cn.jpush.android.service.ServiceInterface.b(SourceFile)
07-18 11:19:05.461 4382-4382/? W/System.err:     at cn.jpush.android.api.JPushInterface.resumePush(SourceFile)
07-18 11:19:05.471 4382-4382/? I/dalvikvm: Could not find method com.xiaomi.mipush.sdk.MiPushClient.shouldUseMIUIPush, referenced from method cn.jpush.android.c.i.c
07-18 11:19:05.471 4382-4382/? W/System.err:     at cn.jpush.android.api.JPushInterface.getRegistrationID(SourceFile)
07-18 11:19:05.521 4382-4382/? W/System.err:     at cn.jpush.android.service.PushReceiver.onReceive(Unknown Source)
07-18 11:19:05.681 4434-4434/? W/JIGUANG-JPush: [AndroidUtil] AndroidManifest.xml missing activity: cn.jpush.android.ui.PopWinActivity
07-18 11:19:05.681 4434-4434/? W/JIGUANG-JPush: [AndroidUtil] You will unable to use pop-window rich push type.
07-18 11:19:05.721 4434-4434/? W/System.err:     at cn.jpush.android.a.a(SourceFile)
07-18 11:19:05.721 4434-4434/? W/System.err:     at cn.jpush.android.api.JPushInterface.init(SourceFile)
07-18 11:19:05.721 4434-4434/? W/System.err:     at cn.jpush.android.a.a(SourceFile)
07-18 11:19:05.721 4434-4434/? W/System.err:     at cn.jpush.android.api.JPushInterface.init(SourceFile)
07-18 11:19:05.731 4434-4434/? W/System.err:     at cn.jpush.android.service.ServiceInterface.b(SourceFile)
07-18 11:19:05.731 4434-4434/? W/System.err:     at cn.jpush.android.api.JPushInterface.resumePush(SourceFile)
07-18 11:19:05.731 4434-4434/? I/dalvikvm: Could not find method com.xiaomi.mipush.sdk.MiPushClient.shouldUseMIUIPush, referenced from method cn.jpush.android.c.i.c
07-18 11:19:05.731 4434-4434/? W/System.err:     at cn.jpush.android.api.JPushInterface.getRegistrationID(SourceFile)

(Y🐑) #17

重新集成了一遍,没有报错的了,但是还是收不到消息,getRegistrationID一直什么都没有打印。


#18

麻烦自己根据集成文档做配置,不要缺少核心功能

如果确认配置正确,那么检查包名是否配置正确,,所有涉及包名的地方
如果手机上有一样包名的App,找出来卸载掉