Troubleshooting and FAQs - React

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

Ensure that the MoEngage SDK is initialised in the main thread in the Android Native application class.

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 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?