Search code examples
push-notificationapi-keyhuawei-push-notification

Using apiKey for huawei push notfications


i configured apiKey in huawei console for PushKit and i want send push from web app to my android app, so i prepared following CURL:

enter image description here

enter image description here

problem is postman still return

{"error":"400 Bad Request, body is empty"}

when i'm trying to call url from any online curl console result is as following:

    {
    "msg": "Authentication Error",
    "code": "80200001"
    }

how can i authorize my request by apiKey?


Solution

  • UPDATE

    enter image description here


    "code": "80200001"

    It's recommended that you check your appid in the URL.

    This error code is usually caused by the appid in your URL is different from the appid used to obtain the access_token, or the appid has no permission.