HMS-Core / hms-react-native-plugin

This repo contains all of React-Native HMS plugins.
https://developer.huawei.com/consumer/en/doc/overview/HMS-Core-Plugin?ha_source=hms1
Apache License 2.0
241 stars 68 forks source link

Cannot receive notification for the real devices #336

Open mmjc29 opened 3 months ago

mmjc29 commented 3 months ago

Hi

I am developing a react native android app. I successfully add the Push kit to my android app.

And I can get the token by HmsPushInstanceId.getToken()

For the sever side I can generate a valid oAuth Token by https://oauth-login.cloud.huawei.com/oauth2/v3/token And I send a test push message by https://push-api.cloud.huawei.com/v1/[id]/messages:send and the response

{ "code": "80000000", "msg": "Success", "requestId": "171772665701123932002706" }

But all my real device cannot receive any notifcation

But It is work on the cloud debugging emulator.