Skip to content

Huawei configuration

  1. Select your app from the Huawei AppGallery Connect projects list.
  2. Go to Project Setting > App information.
  3. Copy Client ID and Client secret values.
Huawei AppGallery Connect showing app information including Client ID and Client secret
  1. Go to your Pushwoosh project, open the Configure Platforms section, and click Connect for the Huawei Android platform.
Pushwoosh Configure Platforms section with the Huawei Android row and Connect button.
  1. Select the framework. Paste the Client ID and Client secret into the App ID and App Secret fields respectively, then click Apply.
Pushwoosh Huawei configuration screen.

Get delivery receipts from Huawei

Anchor link to

A 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
  1. In AppGallery Connect, open your app and go to Push Kit > Settings.

  2. In the app’s Message receipt section, add a new receipt and select version V2.

  3. 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}
  4. 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.

  5. Copy the receipt ID. It looks like RCP1A2B3C4D.

Add the receipt ID in Pushwoosh

Anchor link to
  1. In your Pushwoosh project, open the Configure platforms section and select Huawei Android. If the platform is already connected, click Reconfigure.
  2. 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 to

To 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.