android 获取不到registrationID,接受自定义消息为空

android
标签: #<Tag:0x00007f83da6154f8>

(yun) #1

能够收到自定义Receiver 但是 bundle.getString(PushInterface.EXTRA_EXTRA);里没有内容 为空


#2

1、首先能否取到 extra 取决于你们推送的时候有没有传 extra 信息

2、如果能收到消息则必然集成成功,可以取到 registrationID 值


(yun) #3

消息没有内容 报 not found user push message,use old action to user


(yun) #4

我是用的极光推送平台发的消息


#5

提供全量的 log 不做筛选

提供你官网发的消息的 MessageID

注意你是否有配置好接受消息的回调,新版本的回调
https://docs.jiguang.cn/jpush/client/Android/android_api/#_66


(yun) #6

Message ID 2251817628721363

06-14 10:18:42.742 3729-3729/? I/art: Late-enabling -Xcheck:jni
06-14 10:18:42.784 3729-3729/com.tools.vingontools I/art: my pid: 3729
06-14 10:18:42.784 3729-3729/com.tools.vingontools I/art: my procname: com.tools.vingontools
06-14 10:18:42.784 3729-3729/com.tools.vingontools I/art: ShouldSkipDex2oat: process:com.tools.vingontools ret:0
06-14 10:18:42.811 3729-3729/com.tools.vingontools I/MultiDex: VM with version 2.1.0 has multidex support
06-14 10:18:42.811 3729-3729/com.tools.vingontools I/MultiDex: Installing application
06-14 10:18:42.811 3729-3729/com.tools.vingontools I/MultiDex: VM has multidex support, MultiDex support library is disabled.
06-14 10:18:42.811 3729-3729/com.tools.vingontools I/MultiDex: Installing application
06-14 10:18:42.811 3729-3729/com.tools.vingontools I/MultiDex: VM has multidex support, MultiDex support library is disabled.
06-14 10:18:42.828 3729-3729/com.tools.vingontools D/SoLoader: init start
06-14 10:18:42.829 3729-3729/com.tools.vingontools D/SoLoader: adding system library source: /vendor/lib
06-14 10:18:42.829 3729-3729/com.tools.vingontools D/SoLoader: adding system library source: /system/lib
06-14 10:18:42.829 3729-3729/com.tools.vingontools D/SoLoader: adding application source: com.facebook.soloader.DirectorySoSource[root = /data/app/com.tools.vingontools-2/lib/arm64 flags = 0]
06-14 10:18:42.829 3729-3729/com.tools.vingontools D/SoLoader: adding backup  source: com.facebook.soloader.ApkSoSource[root = /data/data/com.tools.vingontools/lib-main flags = 1]
06-14 10:18:42.830 3729-3729/com.tools.vingontools D/SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /system/lib flags = 2]
06-14 10:18:42.830 3729-3729/com.tools.vingontools D/SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /system/vendor/lib flags = 2]
06-14 10:18:42.830 3729-3729/com.tools.vingontools D/SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /data/app/com.tools.vingontools-2/lib/arm64 flags = 0]
06-14 10:18:42.830 3729-3729/com.tools.vingontools D/SoLoader: Preparing SO source: com.facebook.soloader.ApkSoSource[root = /data/data/com.tools.vingontools/lib-main flags = 1]
06-14 10:18:42.831 3729-3729/com.tools.vingontools V/fb-UnpackingSoSource: locked dso store /data/user/0/com.tools.vingontools/lib-main
06-14 10:18:42.832 3729-3729/com.tools.vingontools I/fb-UnpackingSoSource: dso store is up-to-date: /data/user/0/com.tools.vingontools/lib-main
06-14 10:18:42.833 3729-3729/com.tools.vingontools V/fb-UnpackingSoSource: releasing dso store lock for /data/user/0/com.tools.vingontools/lib-main
06-14 10:18:42.833 3729-3729/com.tools.vingontools D/SoLoader: init finish: 4 SO sources prepared
06-14 10:18:42.833 3729-3729/com.tools.vingontools D/SoLoader: init exiting
06-14 10:18:42.851 3729-3729/com.tools.vingontools D/JIGUANG-JPush: [JPushInterface] action:init - sdkVersion:3.3.2, buildId:30
06-14 10:18:42.870 3729-3729/com.tools.vingontools D/JIGUANG-JPush: [AndroidUtil] action:checkValidManifest
06-14 10:18:42.879 3729-3729/com.tools.vingontools I/JIGUANG-JPush: [JPushGobal] found messageReceiverClass :com.tools.vingontools.receiver.MyJPushMessageReceiver by getCommonReceiverNames
06-14 10:18:42.891 3729-3729/com.tools.vingontools D/JIGUANG-JPush: [JPushGobal] is not same process with JCommonService
06-14 10:18:42.902 3729-3729/com.tools.vingontools D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:init
06-14 10:18:42.903 3729-3749/com.tools.vingontools I/JIGUANG-JCore: [JCoreGobal] action:init jcore,version:2.0.1,build id:30
06-14 10:18:42.907 3729-3749/com.tools.vingontools I/JIGUANG-JCore: [JCommonServiceHelper] found userServiceClass :com.tools.vingontools.receiver.PushService by getCommonServiceNames
06-14 10:18:42.911 3729-3729/com.tools.vingontools E/PRETTY_LOGGER: ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────
06-14 10:18:42.911 3729-3729/com.tools.vingontools E/PRETTY_LOGGER: │ Thread: main
06-14 10:18:42.911 3729-3729/com.tools.vingontools E/PRETTY_LOGGER: ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
06-14 10:18:42.911 3729-3729/com.tools.vingontools E/PRETTY_LOGGER: │ Instrumentation.callApplicationOnCreate  (Instrumentation.java:1025)
06-14 10:18:42.911 3729-3729/com.tools.vingontools E/PRETTY_LOGGER: │    MyApplication.onCreate  (MyApplication.java:69)
06-14 10:18:42.912 3729-3729/com.tools.vingontools E/PRETTY_LOGGER: ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
06-14 10:18:42.912 3729-3729/com.tools.vingontools E/PRETTY_LOGGER: │ JIGUANG
06-14 10:18:42.912 3729-3729/com.tools.vingontools E/PRETTY_LOGGER: └────────────────────────────────────────────────────────────────────────────────────────────────────────────────
06-14 10:18:42.949 3729-3729/com.tools.vingontools W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
06-14 10:18:42.955 3729-3729/com.tools.vingontools I/art: my pid: 3729
06-14 10:18:42.955 3729-3729/com.tools.vingontools I/art: my procname: com.tools.vingontools
06-14 10:18:42.955 3729-3729/com.tools.vingontools I/art: ShouldSkipDex2oat: process:com.tools.vingontools ret:0
06-14 10:18:43.021 3729-3729/com.tools.vingontools D/NetworkSecurityConfig: No Network Security Config specified, using platform default
06-14 10:18:43.062 3729-3743/com.tools.vingontools V/Toast: SHOW: android.widget.Toast$TN@6a9a8ab
                                                            java.lang.RuntimeException: here
                                                                at android.widget.Toast$TN.show(Toast.java:410)
                                                                at android.app.ITransientNotification$Stub.onTransact(ITransientNotification.java:51)
                                                                at android.os.Binder.execTransact(Binder.java:568)
06-14 10:18:43.063 3729-3729/com.tools.vingontools D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:change_foreground
06-14 10:18:43.064 3729-3729/com.tools.vingontools D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:notification_state
06-14 10:18:43.081 3729-3729/com.tools.vingontools V/LargeViewBackgroundUtil: getService iBinder = android.os.BinderProxy@54fcc6
06-14 10:18:43.088 3729-3729/com.tools.vingontools V/LargeViewBackgroundUtil: getService iBinder = android.os.BinderProxy@54fcc6
06-14 10:18:44.620 3729-3729/com.tools.vingontools V/LargeViewBackgroundUtil: getService iBinder = android.os.BinderProxy@54fcc6
06-14 10:18:45.073 3729-3729/com.tools.vingontools V/LargeViewBackgroundUtil: getService iBinder = android.os.BinderProxy@54fcc6
06-14 10:18:45.073 3729-3729/com.tools.vingontools V/LargeViewBackgroundUtil: LargeViewBackgroundUtil
06-14 10:18:45.080 3729-3729/com.tools.vingontools V/LargeViewBackgroundUtil: getService iBinder = android.os.BinderProxy@54fcc6
06-14 10:18:45.080 3729-3729/com.tools.vingontools V/LargeViewBackgroundUtil: LargeViewBackgroundUtil
06-14 10:18:45.379 3729-3729/com.tools.vingontools D/PRETTY_LOGGER: ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────
06-14 10:18:45.380 3729-3729/com.tools.vingontools D/PRETTY_LOGGER: │ Thread: main
06-14 10:18:45.380 3729-3729/com.tools.vingontools D/PRETTY_LOGGER: ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
06-14 10:18:45.380 3729-3729/com.tools.vingontools D/PRETTY_LOGGER: │ AppInjector.qikuOnReceive  (AppInjector.java:372)
06-14 10:18:45.380 3729-3729/com.tools.vingontools D/PRETTY_LOGGER: │    MyReceiver.onReceive  (MyReceiver.java:32)
06-14 10:18:45.380 3729-3729/com.tools.vingontools D/PRETTY_LOGGER: ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
06-14 10:18:45.380 3729-3729/com.tools.vingontools D/PRETTY_LOGGER: │ JIGUANG-Example
06-14 10:18:45.380 3729-3729/com.tools.vingontools D/PRETTY_LOGGER: └────────────────────────────────────────────────────────────────────────────────────────────────────────────────
06-14 10:18:45.380 3729-3729/com.tools.vingontools W/PRETTY_LOGGER: ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────
06-14 10:18:45.381 3729-3729/com.tools.vingontools W/PRETTY_LOGGER: │ Thread: main
06-14 10:18:45.381 3729-3729/com.tools.vingontools W/PRETTY_LOGGER: ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
06-14 10:18:45.381 3729-3729/com.tools.vingontools W/PRETTY_LOGGER: │ AppInjector.qikuOnReceive  (AppInjector.java:372)
06-14 10:18:45.381 3729-3729/com.tools.vingontools W/PRETTY_LOGGER: │    MyReceiver.onReceive  (MyReceiver.java:64)
06-14 10:18:45.381 3729-3729/com.tools.vingontools W/PRETTY_LOGGER: ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
06-14 10:18:45.381 3729-3729/com.tools.vingontools W/PRETTY_LOGGER: │ JIGUANG-Example
06-14 10:18:45.381 3729-3729/com.tools.vingontools W/PRETTY_LOGGER: └────────────────────────────────────────────────────────────────────────────────────────────────────────────────
06-14 10:20:10.387 3729-3883/com.tools.vingontools D/JIGUANG-JPush: [JMessageReceiverHelper] not found user push message,use old action to user
06-14 10:20:10.393 3729-3729/com.tools.vingontools I/PRETTY_LOGGER: ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────
06-14 10:20:10.394 3729-3729/com.tools.vingontools I/PRETTY_LOGGER: │ Thread: main
06-14 10:20:10.394 3729-3729/com.tools.vingontools I/PRETTY_LOGGER: ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
06-14 10:20:10.394 3729-3729/com.tools.vingontools I/PRETTY_LOGGER: │ MyReceiver.onReceive  (MyReceiver.java:32)
06-14 10:20:10.394 3729-3729/com.tools.vingontools I/PRETTY_LOGGER: │    MyReceiver.printBundle  (MyReceiver.java:84)
06-14 10:20:10.394 3729-3729/com.tools.vingontools I/PRETTY_LOGGER: ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
06-14 10:20:10.394 3729-3729/com.tools.vingontools I/PRETTY_LOGGER: │ JIGUANG-Example
06-14 10:20:10.394 3729-3729/com.tools.vingontools I/PRETTY_LOGGER: └────────────────────────────────────────────────────────────────────────────────────────────────────────────────
06-14 10:20:10.394 3729-3729/com.tools.vingontools D/PRETTY_LOGGER: ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────
06-14 10:20:10.395 3729-3729/com.tools.vingontools D/PRETTY_LOGGER: │ Thread: main
06-14 10:20:10.395 3729-3729/com.tools.vingontools D/PRETTY_LOGGER: ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
06-14 10:20:10.395 3729-3729/com.tools.vingontools D/PRETTY_LOGGER: │ AppInjector.qikuOnReceive  (AppInjector.java:372)
06-14 10:20:10.395 3729-3729/com.tools.vingontools D/PRETTY_LOGGER: │    MyReceiver.onReceive  (MyReceiver.java:32)
06-14 10:20:10.395 3729-3729/com.tools.vingontools D/PRETTY_LOGGER: ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
06-14 10:20:10.395 3729-3729/com.tools.vingontools D/PRETTY_LOGGER: │ JIGUANG-Example
06-14 10:20:10.395 3729-3729/com.tools.vingontools D/PRETTY_LOGGER: └────────────────────────────────────────────────────────────────────────────────────────────────────────────────
06-14 10:20:10.395 3729-3729/com.tools.vingontools D/PRETTY_LOGGER: ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────
06-14 10:20:10.396 3729-3729/com.tools.vingontools D/PRETTY_LOGGER: │ Thread: main
06-14 10:20:10.396 3729-3729/com.tools.vingontools D/PRETTY_LOGGER: ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
06-14 10:20:10.396 3729-3729/com.tools.vingontools D/PRETTY_LOGGER: │ AppInjector.qikuOnReceive  (AppInjector.java:372)
06-14 10:20:10.396 3729-3729/com.tools.vingontools D/PRETTY_LOGGER: │    MyReceiver.onReceive  (MyReceiver.java:40)
06-14 10:20:10.396 3729-3729/com.tools.vingontools D/PRETTY_LOGGER: ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
06-14 10:20:10.396 3729-3729/com.tools.vingontools D/PRETTY_LOGGER: │ JIGUANG-Example
06-14 10:20:10.396 3729-3729/com.tools.vingontools D/PRETTY_LOGGER: └────────────────────────────────────────────────────────────────────────────────────────────────────────────────
    pushcore 
    06-14 10:18:42.928 3754-3754/? I/art: Late-enabling -Xcheck:jni
06-14 10:18:42.946 3754-3761/? E/art: Failed sending reply to debugger: Broken pipe
06-14 10:18:42.946 3754-3761/? I/art: Debugger is no longer active
06-14 10:18:42.947 3754-3761/? I/art: Starting a blocking GC Instrumentation
06-14 10:18:42.955 3754-3754/? I/art: my pid: 3754
06-14 10:18:42.955 3754-3754/? I/art: my procname: com.tools.vingontools:pushcore
06-14 10:18:42.955 3754-3754/? I/art: ShouldSkipDex2oat: process:com.tools.vingontools:pushcore ret:0
06-14 10:18:42.980 3754-3754/? I/MultiDex: VM with version 2.1.0 has multidex support
06-14 10:18:42.980 3754-3754/? I/MultiDex: Installing application
06-14 10:18:42.980 3754-3754/? I/MultiDex: VM has multidex support, MultiDex support library is disabled.
06-14 10:18:42.980 3754-3754/? I/MultiDex: Installing application
06-14 10:18:42.980 3754-3754/? I/MultiDex: VM has multidex support, MultiDex support library is disabled.
06-14 10:18:42.993 3754-3754/? D/SoLoader: init start
06-14 10:18:42.994 3754-3754/? D/SoLoader: adding system library source: /vendor/lib
06-14 10:18:42.994 3754-3754/? D/SoLoader: adding system library source: /system/lib
06-14 10:18:42.994 3754-3754/? D/SoLoader: adding application source: com.facebook.soloader.DirectorySoSource[root = /data/app/com.tools.vingontools-2/lib/arm64 flags = 0]
06-14 10:18:42.995 3754-3754/? D/SoLoader: adding backup  source: com.facebook.soloader.ApkSoSource[root = /data/data/com.tools.vingontools/lib-main flags = 1]
06-14 10:18:42.995 3754-3754/? D/SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /system/lib flags = 2]
06-14 10:18:42.995 3754-3754/? D/SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /system/vendor/lib flags = 2]
06-14 10:18:42.995 3754-3754/? D/SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /data/app/com.tools.vingontools-2/lib/arm64 flags = 0]
06-14 10:18:42.995 3754-3754/? D/SoLoader: Preparing SO source: com.facebook.soloader.ApkSoSource[root = /data/data/com.tools.vingontools/lib-main flags = 1]
06-14 10:18:42.996 3754-3754/? V/fb-UnpackingSoSource: locked dso store /data/user/0/com.tools.vingontools/lib-main
06-14 10:18:42.998 3754-3754/? I/fb-UnpackingSoSource: dso store is up-to-date: /data/user/0/com.tools.vingontools/lib-main
06-14 10:18:42.998 3754-3754/? V/fb-UnpackingSoSource: releasing dso store lock for /data/user/0/com.tools.vingontools/lib-main
06-14 10:18:42.998 3754-3754/? D/SoLoader: init finish: 4 SO sources prepared
06-14 10:18:42.998 3754-3754/? D/SoLoader: init exiting
06-14 10:18:43.022 3754-3754/? D/JIGUANG-JPush: [JPushInterface] action:init - sdkVersion:3.3.2, buildId:30
06-14 10:18:43.023 3754-3774/? D/JIGUANG-JCore-IMPL: [JCommonInterface] onEvent action:service_create
06-14 10:18:43.028 3754-3783/? D/JIGUANG-JCore-IMPL: [JCommonInterface] onEvent action:set_sdktype_info
06-14 10:18:43.029 3754-3754/? D/JIGUANG-JPush: [AndroidUtil] action:checkValidManifest
06-14 10:18:43.031 3754-3783/? D/JIGUANG-JPush: [ActionHelper] doAction:init
06-14 10:18:43.033 3754-3787/? D/JIGUANG-JPush: [AndroidUtil] action:checkValidManifest
06-14 10:18:43.035 3754-3754/? I/JIGUANG-JPush: [JPushGobal] found messageReceiverClass :com.tools.vingontools.receiver.MyJPushMessageReceiver by getCommonReceiverNames
06-14 10:18:43.039 3754-3787/? D/JIGUANG-JPush: [GeofenceAction] Recover geofence size:0
06-14 10:18:43.041 3754-3787/? D/JIGUANG-JPush: [CustomGeofenAction] start listen geofence
06-14 10:18:43.042 3754-3787/? D/JIGUANG-JPush: [CustomGeofenAction] No geofence,not need listen
06-14 10:18:43.045 3754-3754/? D/JIGUANG-JPush: [JPushGobal] is not same process with JCommonService
06-14 10:18:43.047 3754-3754/? D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:init
06-14 10:18:43.048 3754-3791/? I/JIGUANG-JCore: [JCoreGobal] action:init jcore,version:2.0.1,build id:30
06-14 10:18:43.050 3754-3791/? I/JIGUANG-JCore: [JCommonServiceHelper] found userServiceClass :com.tools.vingontools.receiver.PushService by getCommonServiceNames
06-14 10:18:43.054 3754-3754/? E/PRETTY_LOGGER: ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────
06-14 10:18:43.054 3754-3754/? E/PRETTY_LOGGER: │ Thread: main
06-14 10:18:43.054 3754-3754/? E/PRETTY_LOGGER: ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
06-14 10:18:43.055 3754-3754/? E/PRETTY_LOGGER: │ Instrumentation.callApplicationOnCreate  (Instrumentation.java:1025)
06-14 10:18:43.055 3754-3754/? E/PRETTY_LOGGER: │    MyApplication.onCreate  (MyApplication.java:69)
06-14 10:18:43.055 3754-3754/? E/PRETTY_LOGGER: ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
06-14 10:18:43.055 3754-3754/? E/PRETTY_LOGGER: │ JIGUANG
06-14 10:18:43.055 3754-3754/? E/PRETTY_LOGGER: └────────────────────────────────────────────────────────────────────────────────────────────────────────────────
06-14 10:18:43.056 3754-3783/? D/JIGUANG-JPush: [ActionHelper] doAction:init
06-14 10:18:43.058 3754-3754/? D/JIGUANG-JCore-IMPL: [JCommonInterface] onEvent action:get_receiver
06-14 10:18:43.065 3754-3783/? D/JIGUANG-JPush: [ActionHelper] doAction:change_foreground
06-14 10:18:43.065 3754-3794/? D/JIGUANG-JCore-IMPL: [JCoreTCPManager] Action - restartNetworkingClient, pid:3754
06-14 10:18:43.066 3754-3787/? D/JIGUANG-JPush: [CustomGeofenAction] start listen geofence
06-14 10:18:43.066 3754-3787/? D/JIGUANG-JPush: [CustomGeofenAction] No geofence,not need listen
06-14 10:18:43.069 3754-3797/? I/JIGUANG-JCore-IMPL: [NetworkingClient] Begin to run in ConnectingThread - id:3508
06-14 10:18:43.069 3754-3783/? D/JIGUANG-JCore-IMPL: [JCommonInterface] onEvent action:notification_state
06-14 10:18:43.070 3754-3794/? D/JIGUANG-JCore-IMPL: [JCoreTCPManager] Send heart beat
06-14 10:18:43.080 3754-3797/? D/JIGUANG-JCore-IMPL: [JCommonInterface] onEvent action:get_imei
06-14 10:18:43.136 3754-3805/? D/JIGUANG-JCore-IMPL: [JCommonInterface] onEvent action:get_loc_info
06-14 10:18:43.141 3754-3805/? D/JIGUANG-JCore-IMPL: [ConnectingHelper] udp Receiving...
06-14 10:18:45.203 3754-3880/com.tools.vingontools:pushcore D/JIGUANG-JCore-IMPL: [ConnTask_xxx] Open connection with ip=/175.25.50.219, port:7003
06-14 10:18:45.272 3754-3880/com.tools.vingontools:pushcore I/JIGUANG-JCore-IMPL: [ConnTask_xxx] Succeed to open connection - ip:/175.25.50.219, port:7003
06-14 10:18:45.275 3754-3797/com.tools.vingontools:pushcore I/JIGUANG-JCore-IMPL: [ConnectingHelper] Login with - juid:25694446424, appKey:aeadf81e6acdbebb9616c346, sdkVersion:131073|197378, pluginPlatformType:0
06-14 10:18:45.278 3754-3797/com.tools.vingontools:pushcore D/JIGUANG-JCore-IMPL: [JCommonInterface] onEvent action:get_loc_info
06-14 10:18:45.339 3754-3797/com.tools.vingontools:pushcore I/JIGUANG-JCore-IMPL: [ConnectingHelper] Login succeed - sid:55735, serverTime;1560478725000
06-14 10:18:45.340 3754-3797/com.tools.vingontools:pushcore D/JIGUANG-JCore-IMPL: [NetworkingClient] Network listening...
06-14 10:18:45.340 3754-3794/com.tools.vingontools:pushcore D/JIGUANG-JCore-IMPL: [JCoreTCPManager] Action - onLoggedIn
06-14 10:18:45.342 3754-3794/com.tools.vingontools:pushcore I/JIGUANG-JPush: [ThirdPushManager] uploadRegIdAfterLogin
06-14 10:18:45.344 3754-3794/com.tools.vingontools:pushcore D/JIGUANG-JCore-IMPL: [JCommonInterface] onEvent action:periodtask
06-14 10:18:45.381 3754-3794/com.tools.vingontools:pushcore D/JIGUANG-JCore-IMPL: [JCommonInterface] onEvent action:getwakeenable
06-14 10:18:45.385 3754-3886/com.tools.vingontools:pushcore D/JIGUANG-JCore-IMPL: [JCommonInterface] onEvent action:filter_pkg_list
06-14 10:18:45.622 3754-3786/com.tools.vingontools:pushcore E/ThemeResources: theme properties invaild id: dir=com.qiku.android.launcher3; filter=; key=CALENDAR_WITH_WEEK; value=true
06-14 10:18:45.622 3754-3786/com.tools.vingontools:pushcore E/ThemeResources: theme properties invaild id: dir=com.qiku.android.launcher3; filter=; key=CALENDAR_WEEK_USE_COLOR; value=true
06-14 10:18:45.622 3754-3786/com.tools.vingontools:pushcore E/ThemeResources: theme properties invaild id: dir=com.qiku.android.launcher3; filter=; key=CALENDAR_WEEK_PADDING_TOP; value=20
06-14 10:18:45.623 3754-3786/com.tools.vingontools:pushcore E/ThemeResources: theme properties invaild id: dir=com.qiku.android.launcher3; filter=; key=CALENDAR_WEEK_COLOR; value=#FE3F6E
06-14 10:18:45.623 3754-3786/com.tools.vingontools:pushcore E/ThemeResources: theme properties invaild id: dir=com.qiku.android.launcher3; filter=; key=CALENDAR_WEEK_TEXT_SIZE; value=9
06-14 10:18:45.623 3754-3786/com.tools.vingontools:pushcore E/ThemeResources: theme properties invaild id: dir=com.qiku.android.launcher3; filter=; key=USE_FULL_ICON; value=true
06-14 10:18:45.623 3754-3786/com.tools.vingontools:pushcore E/ThemeResources: theme properties invaild id: dir=com.qiku.android.launcher3; filter=; key=QIKU_LAUNCHER_THEME; value=true
06-14 10:18:45.624 3754-3786/com.tools.vingontools:pushcore E/ThemeResources: theme properties invaild id: dir=com.qiku.android.launcher3; filter=; key=THIRDPART_ICON_WIDTH; value=52
06-14 10:18:45.624 3754-3786/com.tools.vingontools:pushcore E/ThemeResources: theme properties invaild id: dir=com.qiku.android.launcher3; filter=; key=THIRDPART_ICON_HEIGHT; value=52
06-14 10:20:10.360 3754-3797/com.tools.vingontools:pushcore D/JIGUANG-JCore-IMPL: [NetworkingClient] Received bytes - len:260, pkg:com.tools.vingontools
06-14 10:20:10.360 3754-3797/com.tools.vingontools:pushcore D/JIGUANG-JCore-IMPL: [NetworkingClient] Network listening...
06-14 10:20:10.362 3754-4030/com.tools.vingontools:pushcore D/JIGUANG-JPush: [ActionHelper] doAction:msg
06-14 10:20:10.364 3754-3787/com.tools.vingontools:pushcore D/JIGUANG-JPush: [JPushActionImpl] action:handleMsg:JPushResponse{cmd=3, rid=0, rquestId=-1}
06-14 10:20:10.405 3754-4034/com.tools.vingontools:pushcore D/NetworkSecurityConfig: No Network Security Config specified, using platform default
06-14 10:20:10.406 3754-4034/com.tools.vingontools:pushcore I/DpmTcmClient: RegisterTcmMonitor from: com.android.okhttp.TcmIdleTimerMonitor
06-14 10:20:10.418 3754-4034/com.tools.vingontools:pushcore I/System.out: [socket]connecting,remote:ali-stats.jpush.cn/183.232.25.152:443,localport:-1(timeout:30000ms)
                                                                          
                                                                          [ 06-14 10:20:10.418  3754: 4034 D/         ]
                                                                          [socket]Process(3754) com.tools.vingontools:pushcore :443 
06-14 10:20:10.459 3754-4034/com.tools.vingontools:pushcore I/System.out: [socket]connected,remote:ali-stats.jpush.cn/183.232.25.152:443,localport:49887
06-14 10:20:10.580 3754-4034/com.tools.vingontools:pushcore D/JIGUANG-JCore: [HttpHelper] status code:200 retry left:2

#7

这个日志里面没有看到你有收到 Message 的打印,但我查询你设备确实已收到了消息。

请参考下 demo,检查你接收消息的回调写的正不正确




(yun) #8


按照demo写的


(yun) #9

关键我用getRegistrationID 拿不到 id


#10

你上面截图代码没有看到有接收消息的方法,只有别名标签的

你在何时调的获取 registrationID 取不到,日志里面显示已登陆成功有 registrationID


(yun) #11

在JPushInterface.init 之后 获取 都是为空


(yun) #12

可以了 是自己写错了 谢谢