【发布时间】:2020-10-19 12:46:37
【问题描述】:
我已经在我的应用中设置了 PushKit,并且我想发送上游消息。在设备上失败,但出现以下异常:
com.huawei.hms.push.SendException: device not in device group
at com.huawei.hms.push.HmsMessageService.b(HmsMessageService.java:299)
at com.huawei.hms.push.HmsMessageService.a(HmsMessageService.java:190)
at com.huawei.hms.push.HmsMessageService.a(HmsMessageService.java:39)
at com.huawei.hms.push.HmsMessageService$a.handleMessage(HmsMessageService.java:162)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:7948)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075)
- 消息长度:616
- 生成令牌
这个错误是什么意思?
查看docs about this error,可以看到:
ERROR_DEVICE_NOT_IN_GROUP
常数值:907122057
该设备不在设备组中。
但没有更多细节。
【问题讨论】:
-
你能分享你关于上游消息的代码吗?
-
请提供您的代码的发送上游消息部分。 :)
-
感谢你们。问题是因为在创建 `RemoteMessage.我在答案中添加了描述。
标签: huawei-mobile-services huawei-push-notification