KirubaPradeep
KirubaPradeep

Reputation: 327

Huawei mobile services push kit 907122036: no right API call

I want to use the Push Kit.. is there something wrong with my configuration or setup?

Environment :

Phone model (Settings > About phone): ANA-NX9 Huawei P40.

EMUI version (Settings > About phone): 11.0.0

HMS Core version number(Settings > Apps > Apps > HMS Core): 6.1.0.314 SDK version number

(app-level build.gradle document): 24

LOGS: **Error/Exception: {"framesToPop":1,"nativeStackAndroid":[],"userInfo":null,"message":"907122036: no right","code":"907122045"}

Above error whenever I try to getToken via HmsPushInstanceId.getToken('')**

enter image description here

Upvotes: 2

Views: 502

Answers (1)

Pavan Ghanate
Pavan Ghanate

Reputation: 121

Basically this error(907122036 ) will come if HUAWEI Push Kit is not enabled. For details, refer to Getting Started to check whether the related service is enabled for the app.

Result Code reference

check whether you have enable permission from Manage APIs: Go to Project settings > Manage APIs and enable Push Kit.

How can I check whether HUAWEI Push Kit is enabled for an app? Sign in to AppGallery Connect, select the app to be checked, click Manage APIs, and check whether HUAWEI Push Kit is enabled.

Check the Service status parameter. If its value is Enabled, HUAWEI Push Kit is enabled for the app.

React native push kit reference sample code

make sure you are using React Native Push Plugin, download the HMS Core SDK package and integrate it locally.

For the integration process, refer to React Native Development Guide. latest plugin.

Happy coding!!

Upvotes: 5

Related Questions