API reference for the Campaign Cordova in-app message plugin

The in-app message plugin is added to the Campaign library by default. If you open the plugins section of CampaignConfig.json (the primary configuration file for the Campaign library), you will find the following entry for it.

"cordova-acoustic-mobile-push-plugin-inapp": true,

To trigger an in-app message based on a default template, use the executeInAppRule method and pass the rule you previously sent through Campaign.

MCEInAppPlugin.executeInAppRule(['test']);