Add notification action plugins to a Cordova project
The Campaign library supports several notification action plugins. The primary plugins are active by default. You can enable additional ones during the library integration or any time later.
Prerequisites
To use the plugins, you must integrate the Campaign library into your app.
Installation
- In the root directory of your project, open the CampaignConfig.json file. Here is an example from our sample app.
- In the
plugins
section, enable the plugins you need.
{
"plugins": {
"Please note": "<true/false>, for cordova build. True for release build, false for beta build",
"useRelease": false,
"Required Mobile-Push plugins": "<true/false>, enable or disable plugin",
"cordova-acoustic-mobile-push": true,
"cordova-acoustic-mobile-push-plugin-ios-notification-service": true,
"cordova-acoustic-mobile-push-plugin-inapp": true,
"cordova-acoustic-mobile-push-plugin-inbox": true,
"Optional Mobile-Push plugins": "<true/false>, enable or disable plugin",
"cordova-acoustic-mobile-push-plugin-action-menu": true,
"cordova-acoustic-mobile-push-plugin-beacon": true,
"cordova-acoustic-mobile-push-plugin-calendar": true,
"cordova-acoustic-mobile-push-plugin-displayweb": true,
"cordova-acoustic-mobile-push-plugin-geofence": true,
"cordova-acoustic-mobile-push-plugin-location": true,
"cordova-acoustic-mobile-push-plugin-passbook": true,
"cordova-acoustic-mobile-push-plugin-snooze": true
}
}
- Important: to apply the changes, run the following Node.js command from the root project directory.
node node_modules/cordova-acoustic-mobile-push/scripts/installPlugins.js
Related pages
Updated about 18 hours ago