Developer Guide
Please make sure that you have set up Push Kit on your application. To configure, use the following:
MoEngage Callback URL
New DataCenter | New Callback URL | Old Callback URL |
---|---|---|
Data Center 1 | https://api-01.moengage.com/hmspush/dlr | https://smsapi.moengage.com/hmspush/dlr |
Data Center 2 | https://api-02.moengage.com/hmspush/dlr | https://smsapi.moengage.com/hmspush/dlr |
Data Center 3 | https://api-03.moengage.com/hmspush/dlr | https://smsapi.moengage.com/hmspush/dlr |
Data Center 4 | https://api-04.moengage.com/hmspush/dlr | NA |
Update the URL in the callback address while enabling the recipient.
HTTPS Certificate for MoEngage callback URL
- Select data storage other than the China region when enabling callback receipt.
- Use the following script to generate the HTTPS certificate while enabling the recipient. For more information, refer to Push Receipt.
import ssl
print(ssl.get_server_certificate(('dashboard-01.moengage.com', 443)))
Configuring Huawei Push
To configure Huawei on the MoEngage dashboard:
- Navigate to Settings > Channels > Push > App Push > Huawei (Push Amp+)
- Select Huawei (Push Amp+) in the Platforms available on the menu at the top.
- Navigate to Settings > Channels > Push > Mobile Push.
- Select Select Push Amp+ in the Platforms available on the menu on the left, and scroll down to Huawei.
App ID
Get the App ID from the Huawei Developer Console by navigating to
Login > AppGallery Connect > My Apps > Select Your App > Distribute > App Information
App Secret
Get the App ID from the Huawei Developer Console by navigating to
Login > AppGallery Connect > My Apps > Select Your App > Distribute > App Information
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.
Small Icon Path
As an important part of a notification message, a notification icon is used to identify the content and type of the message. To ensure a 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. For more information, refer to the guideline document.
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.