Configuring Push in Android
To use Push Notification in your Unity application you need to configure Firebase into your application, refer to the Push Notification documentation to configure Push Notification in your application.
Also, make sure you have set up Firebase for Unity.
In case, your application is handling the push token registration and push payload we highly recommend you use the native Android methods(mentioned in the documentation above) for passing the token and the payload to the SDK.
If for whatever reason you wish to pass the push token and payload to the SDK via the Unity game Engine or C# code use the below APIs
Passing Push Token
using MoEngage;
MoEngageClient.PassPushToken()
Passing Push Payload
using MoEngage;
MoEngageClient.PassPushPayload()
warning |
Warning We highly recommend you to use the Android native APIs for passing the push payload to the MoEngage SDK instead of the Unity/C# APIs. Unity Engine might not get initialized if the application is in the killed state which will lead to poor push reachability or delivery. |