Huawei configuration
- Select your app from the Huawei AppGallery Connect projects list.
- Go to Project Setting > App information.
- Copy Client ID and Client secret values.

- Go to your Pushwoosh project, open the Configure Platforms section, and click Connect for the Huawei Android platform.

- Select the framework. Paste the Client ID and Client secret into the App ID and App Secret fields respectively, then click Apply.

Get delivery receipts from Huawei
Anchor link toA delivery receipt is Huawei’s report on whether a message reached the device. Huawei sends delivery receipts only for messages that carry a receipt ID. The receipt ID belongs to a message receipt, a callback configuration that you create in AppGallery Connect. Without a receipt ID, Huawei sends no delivery receipts for your app. The setting is optional, and messages are delivered with or without it.
To get delivery receipts, create a message receipt in AppGallery Connect, then add its ID to the Huawei platform settings in Pushwoosh.
Create a message receipt in AppGallery Connect
Anchor link to-
In AppGallery Connect, open your app and go to Push Kit > Settings.
-
In the app’s Message receipt section, add a new receipt and select version V2.
-
In the callback address, enter the following URL. Replace
{APP_CODE}with your Pushwoosh application code:https://tw-callback.svc-nue.pushwoosh.com/api/v1/huaweiReceipt/{APP_CODE} -
Click Test receipt to check that Pushwoosh answers. If the test returns a 404 error, check the application code in the URL. Then save the receipt.
-
Copy the receipt ID. It looks like
RCP1A2B3C4D.
Add the receipt ID in Pushwoosh
Anchor link to- In your Pushwoosh project, open the Configure platforms section and select Huawei Android. If the platform is already connected, click Reconfigure.
- Paste the receipt ID into the Receipt ID field, then click Apply.
The saved ID appears in the Huawei platform settings next to the App ID.
Stop getting delivery receipts
Anchor link toTo stop getting delivery receipts, clear the Receipt ID field and click Apply. Pushwoosh then sends messages without a receipt ID, and Huawei stops sending delivery receipts.
Clear the field before you delete the message receipt in AppGallery Connect. If the receipt ID no longer matches a working message receipt, Huawei rejects every message to your Huawei devices with the InvalidReceiptURL error.