taoweiji / MixPush

Android 混合推送SDK,快速集成6个厂商推送,共享系统推送通道,杀死也能收到推送,推送到达率90%以上
Apache License 2.0
1.12k stars 187 forks source link

华为平台需要新启动一个线程,错误号:[907122050] #62

Closed git4wht closed 1 year ago

git4wht commented 2 years ago

907122050 | 操作不能在主线程中。 | 请新建一个线程,在新线程中调用具体的方法。

taoweiji commented 2 years ago

麻烦提供一下错误信息

git4wht commented 2 years ago

2022-07-13 16:56:03.112 8426-8426/? E/MixPush-HuaweiPushProvider: hms get token failed com.huawei.hms.common.ApiException: 907122050: operation in MAIN thread prohibited https://developer.huawei.com/consumer/cn/doc/development/HMSCore-References-V5/error-code-0000001050255690-V5 2022-07-13 16:56:03.625 2306-2746/? E/BoosterUtil: convertSubIdToSlotId failed, subId:0, slotId:-1

taoweiji commented 2 years ago

有错误堆栈吗