Configuring Huawei Push on MoEngage

Developer Guide

Before configuring MoEngage SDK for receiving push notifications from Push Kit please make you have configured Push Kit in your application, if not done already refer to the HMS documentation given below

HMS
https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/push-introduction
https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/push-receipt#receiptright

MoEngage Callback Url

Please update above url in the callback address while enabling the recipient

Https Certificate for MoEngage callback url

Please select data storage other than China region when enabling callback receipt
Please update below https certificate while enabling the recipient
https://developer.huawei.com/consumer/en/doc/development/HMS-Guides/push-receipt#receiptright

-----BEGIN CERTIFICATE-----
MIIGODCCBSCgAwIBAgIJAIrF85Za41E0MA0GCSqGSIb3DQEBCwUAMIG0MQswCQYD
VQQGEwJVUzEQMA4GA1UECBMHQXJpem9uYTETMBEGA1UEBxMKU2NvdHRzZGFsZTEa
MBgGA1UEChMRR29EYWRkeS5jb20sIEluYy4xLTArBgNVBAsTJGh0dHA6Ly9jZXJ0
cy5nb2RhZGR5LmNvbS9yZXBvc2l0b3J5LzEzMDEGA1UEAxMqR28gRGFkZHkgU2Vj
dXJlIENlcnRpZmljYXRlIEF1dGhvcml0eSAtIEcyMB4XDTIxMDEzMTA3MjIxNFoX
DTIyMDMwNDA2NTgyMFowPDEhMB8GA1UECxMYRG9tYWluIENvbnRyb2wgVmFsaWRh
dGVkMRcwFQYDVQQDDA4qLm1vZW5nYWdlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQAD
ggEPADCCAQoCggEBAL+SEuSxQTESAlYTGKkiT3AMQ3XrikfpezZ7cwB9Pj95AecA
IjUU7mGMLqbsec1qrhb9QK/8n2AgzD6OoxOWhPLs153kQlKTMbdHCqLF+BhjN/Va
EtOFY3uHHmOQ1aUrl0M4CIMY4G2D3j6kaQ/pDsPSncX7rfipT8H8SAdCKnrAX20B
42yDXtRRRlHAgchOryHRMwzKNfgjRSIs/QXOoBQ/bbsxHXAj/YA2gwohcTIgmfra
s++7Q6c0nyhiP6ItNZR1qyzbCVpV9N1Z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BCwUAA4IBAQCU2Zsw
O57KyQlNxWptk7Y9LbcQV2Eb6PiidDJFpR3Oq/plMZpiKZw7JYrMxQnYeIySZDwn
tytEFaQud0znzAPW8xUBe2l2X48a3qD/qG1pMWKNr2ycVnI3GoW7cZ/3KGZLT4Ge
+WpeYO2cZO4DK8U3BdXmaZyJ/yQOpvliXdaikOcqPX8+t1iu2e8uOrfERuADkRlh
3tZDVgOkv62q5OqZWXdwK62EGQaZry8aU+8A3nMVyIdl5lZ2fkYn0gwXvoNzbqVy
jlDO6YrqHl8CpshRhVzCBeReVnedDEoB/9zyg94FfrLDf6H0Pc1UiwgLmXKF8mAi
ChkNOBbYrej1PlTs
-----END CERTIFICATE-----

Configure App-Id

You can get the App ID from the Huawei Developer Console
Login --> AppGallery Connect --> My Apps --> Select Your App --> Distribute --> App Information

Configure App Secret

You can get the App Secret from the Huawei Developer Console
Login --> AppGallery Connect --> My Apps --> Select Your App --> Distribute --> App Information

Configure Package Name

The package name for an application is the unique identifier through which the play store recognizes the application. You can find the package of your application in the build.gradle file of your application module.

If you have different package names for debug build and signed build configure the package names accordingly in the Test/Live Environment.

Configure Small Icon

As an important part of a notification message, a notification icon is used to identify the content and type of the message. To ensure consistent user experience, HUAWEI Push Kit notification icons inherit the styles of native Android notification icons. In other words, a notification icon on the notification bar is displayed in a solid color and the notification icon on the status bar is displayed in black or white. The status bar and notification bar share the same resources.
Refer to the guideline document for more details.

The icon file must be stored in the /res/raw directory of an app. For example, the value /raw/ic_launcher indicates the local icon file ic_launcher.xxx stored in /res/raw. Currently, supported file formats include PNG and JPG.