Framework Initialization

Initialize Plugin

Initialize the MoEngage Plugin by calling the MoECapacitorCore.initialize(). In case of Ionic-React initialize the plugin in useIonViewWillEnter() callback, for Ionic-Angular initialize the plugin in ngOnInit().

Typescript
import { MoECapacitorCore} from 'capacitor-moengage-core'
MoECapacitorCore.initialize();
warning

Warning

Make sure you are setting the Push/InApp callback listeners before calling the initialize().

Previous

Next

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

How can we improve this article?