Framework Initialization

Initialize Plugin

Initialize the MoEngage Plugin by calling the MoECapacitorCore.initialize({ appId: "YOUR_APP_ID" });. In the case of Ionic-React initialize the plugin in the useIonViewWillEnter() callback, for Ionic-Angular initialize the plugin in ngOnInit().

import { MoECapacitorCore} from 'capacitor-moengage-core'
MoECapacitorCore.initialize({ appId: "YOUR_APP_ID" })


Make sure you are setting the Push/InApp callback listeners before calling the initialize({ appId: "APP ID" }).

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

How can we improve this article?