I want to send push from server to Huawei device with Huawei Push Kit integrated. I have deviceToken
from device, but when I try so send push message using API I receive error:
80300002: No permission to send message to these tmIDs
I want to send push from server to Huawei device with Huawei Push Kit integrated. I have deviceToken
from device, but when I try so send push message using API I receive error:
80300002: No permission to send message to these tmIDs
This error can be caused be wrong
AppId
, used in API url path.AppId
can be found in console so:App Gallery Connect -> My projects -> YOUR_PROJECT -> Project settings
. On this screenAppId
isApplication ID
, which can be found aboveSHA-256
of your signing keys.So, working request using curl looks like (for notification push (shown in notification bar)):
To get
ACCESS_TOKEN
see this question: How to get access token for Huawei Api for sending push to device?You can find more information in documentation: https://developer.huawei.com/consumer/en/doc/development/HMSCore-References-V5/https-send-api-0000001050986197-V5#EN-US_TOPIC_0000001070412173__section134322259125