error code: 80300002, error message: APP is forbidden to send. I try to act on the push examples, and it occured this problem. I want to push to my phone,how to solve it
Troubleshooting
Sign in to AppGallery Connect and check that HUAWEI Push Kit is enabled.
If HMS Core Push SDK 2.0 is integrated, remove the backslash () from the escape character in the access token (AT) and then encode the token using UrlEncode.
The token does not match the app.
Check whether the value of msg type is 1 or 3. Currently, the value 2 is not supported.
If HUAWEI Push Kit functions normally in China and result code 80300002 is returned only for devices outside China, you need to enable HUAWEI Push Kit for devices outside China. Find your app, disable HUAWEI Push Kit, and then enable it again. Note that if you wish to enable HUAWEI Push Kit only, upload the APK of your app to HUAWEI AppGallery first (you can save the APK as a draft). Otherwise, you cannot find the app when enabling HUAWEI Push Kit again.
Check whether input errors exist in the body of the message sent.
Send a test message on HUAWEI Push Kit Console. If the message is received, the fault is caused by API calling.