有些Android手机收不到registrationID

用户3923100
2020-10-15 01:26 159 1

部分机型接受不到registrationID:
使用Redmi 6A时可以获取:
下面是Redmi 6A的初始化log

D/ActionManager: addAction type:JSHARE,action:cn.jiguang.bk.g
D/JIGUANG-JPush: [JPushInterface] action:init - sdkVersion:3.8.0, buildId:81
D/JIGUANG-JPush: [AndroidUtil] action:checkValidManifest
I/JIGUANG-JPush: [JPushConstants] found messageReceiverClass :com.ejoy.smarthome.push.PushMessageReceiverat com.ejoy.smarthome by getCommonReceiverNames
D/JIGUANG-JPush: [AndroidUtil] find authority: com.ejoy.smarthome.provider and uri permission is ok
D/JIGUANG-JPush: [ActionHelper] doSingleAction: third_init
D/JIGUANG-JShare: [PlatformManager] parseConfig way :1
I/JIGUANG-D: [JDyAndroidUtils] found userServiceClass :com.ejoy.smarthome.push.PushService by getCommonServiceNames
D/JIGUANG-JShare: [PlatformManager] platform QQ has configured
I/JIGUANG-JCore: [JCommonServiceHelper] found userServiceClass :com.ejoy.smarthome.push.PushService by getCommonServiceNames
D/JIGUANG-JShare: [PlatformManager] platform Wechat has configured
D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:install_status
I/JIGUANG-JCore: [JCoreGobal] action:init jcore,version:2.5.1,build id:30,l:251
D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:init
D/JIGUANG-JPush: [AndroidUtil] action:checkValidManifest
D/JIGUANG-JPush: [AndroidUtil] find authority: com.ejoy.smarthome.provider and uri permission is ok
D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:install_status
E/JIGUANG-JCore: [ActivityLifecycle] check TranslucentNotitleTheme failed :android.content.res.Resources$NotFoundException: Can't find ColorStateList from drawable resource ID #0x7f080093
D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:notification_state
D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:change_foreground_dy
D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:change_foreground
D/JIGUANG-JCommon: [JCommonInterface] onEvent action:waked

以下是Redmi 6A的广播接受到的log

 E/PushMessageReceiver: [onNotificationSettingsCheck] isOn:true,source:0
 E/PushMessageReceiver: [onRegister] 1104a897921f1bdcaca
 E/PushMessageReceiver: [onConnected] true

以下是Redmi 9的初始化log

D/ActionManager: addAction type:JSHARE,action:cn.jiguang.bk.g
D/JIGUANG-JPush: [JPushInterface] action:init - sdkVersion:3.8.0, buildId:81
D/JIGUANG-JPush: [AndroidUtil] action:checkValidManifest
I/JIGUANG-JPush: [JPushConstants] found messageReceiverClass :com.ejoy.smarthome.push.PushMessageReceiverat com.ejoy.smarthome by getCommonReceiverNames
D/JIGUANG-JPush: [AndroidUtil] find authority: com.ejoy.smarthome.provider and uri permission is ok
D/JIGUANG-JPush: [ActionHelper] doSingleAction: third_init
D/JIGUANG-JShare: [PlatformManager] parseConfig way :1
D/JIGUANG-JShare: [PlatformManager] platform QQ has configured
I/JIGUANG-D: [JDyAndroidUtils] found userServiceClass :com.ejoy.smarthome.push.PushService by getCommonServiceNames
D/JIGUANG-JShare: [PlatformManager] platform Wechat has configured
I/JIGUANG-JCore: [JCommonServiceHelper] found userServiceClass :com.ejoy.smarthome.push.PushService by getCommonServiceNames
D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:install_status
I/JIGUANG-JCore: [JCoreGobal] action:init jcore,version:2.5.1,build id:30,l:251
D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:init
D/JIGUANG-JPush: [AndroidUtil] action:checkValidManifest
D/JIGUANG-JPush: [AndroidUtil] find authority: com.ejoy.smarthome.provider and uri permission is ok
D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:install_status
E/JIGUANG-JCore: [ActivityLifecycle] check TranslucentNotitleTheme failed :android.content.res.Resources$NotFoundException: Can't find ColorStateList from drawable resource ID #0x7f080093
D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:notification_state
D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:change_foreground_dy
D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:change_foreground

Redmi 9接受到的广播只有一条

E/PushMessageReceiver: [onNotificationSettingsCheck] isOn:true,source:0

调用api getRegistrationID() 产生log:

D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:get_rid
E/PushMessageReceiver: [onCommandResult] CmdMessage{cmd=2005, errorCode=0, msg='', extra=Bundle[{cmd=2005, code=0, message=}]}
E/PushMessageReceiver: [onNotificationSettingsCheck] isOn:true,source:0
I/ActivityThread: Removing dead content provider:android.content.ContentProviderProxy@824d7fe

1个回答

热门排序