Search code examples
huawei-mobile-serviceshuawei-push-notification

Huawei push API throws error saying token count is wrong in postman


Using push API continuously returns token count should within 1 and 1,000. Please find the API error in the screenshot.

enter image description here


Solution

  • The possible causes of this problem is, you have placed the “token” attribute in wrong place.

    Solution: Please keep your “token” attribute within the “message” object,. enter image description here

    For details, check the following documents:

    https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/android-server-dev-0000001050040110