- Ensure that you have configured Push Kit on your application.
For more information, refer to HMS Push Kit documentation. - Ensure that you configure MoEngage SDK for receiving push notifications.
SDK Installation
Installing Using BOM
Integration using BOM is the recommended way of integration; refer to the Install Using BOM document to configure BOM if not done already. Once you have configured the BOM add the dependency in the app/build.gradle file as shown belowPush Token Management
When using MoEngage SDK, you can either register for token and pass it on to the MoEngage SDK or simply let MoEngage SDK register for Push Token.Token Registration Handled by Application
If your application is registering for Push Notification, use the below API to pass the Push token to the MoEngage SDK.Token Registration Handled by MoEngage
By default, the MoEngage SDK does not register for push tokens. You can enable the token registration using the configurePushKit() API in the MoEngage.Builder while initializing the SDKAn application can get this callback by implementing the TokenAvailableListener interface and registering the listener using MoEPushKitHelper.getInstance().addTokenListener() API.
To use Push Kit, you need to update the moe-android-sdk to 10.3.00 or above.