Troubleshooting and FAQs - React

Android - Why are notifications not working in the background or killed state?

Ensure that you are initializing MoEngage in the app.ts or app.js as mentioned in this article, and ensure that you are passing FCM payload to MoEngage SDK if you are handling the push notification. Read more about it here

Sample code for initialisation - GitHub

Android - Why are callbacks not working in the background or killed state?

MoEngage callbacks must be registered in your app.js or app.ts, and after setting them up, you must call the MoEngage Plugin's initialize () method. Read more about it here

Sample code for callbacks - GitHub

Android - Why are push deep links not working?

MoEngage SDK doesn't handle redirections by default except for rich landing page, please refer to the documentation here. You must implement push click callback methods in your app.js or app.ts and call moengage plugin initialise() method after registering for callbacks. In these callbacks, you must handle the redirection for deeplink or screen based redirection. Callbacks documentation is given here.

Sample code for push listeners - GitHub

Android - Why are inapp/nudge deep links not working?

MoEngage SDK doesn't handle in-app redirections by default except for rich landing pages; please refer to the documentation here. You must implement in-app click callback methods in your app.ts or app.js and call the moengage plugin initialise() method after you register for callbacks. In these callbacks, you will have to write code to extract navigation information and handle the redirection according to your preference. Callback documentation is given here.

Sample code for inapp/nudge callbacks - GitHub

Android - Why are inapp/nudge callbacks not working?

Refer to this documentation to set up inapp callbacks. Additionally, you must register the callbacks in your application's app.js or app.ts, and after setting them up, you must call the MoEngage Plugin's initialize () method.

Sample code for inapp/nudge callbacks - GitHub

 

Previous

Next

Was this article helpful?
0 out of 0 found this helpful

How can we improve this article?