Configure the MobilePush SDK Cordova Plugin for Android Apps

After you install and configure the MobilePush SDK Cordova plugin, configure the plugin to enable push support for the Android platform.

Before you configure the MobilePush SDK Cordova plugin for Android apps, make sure that the plugin is installed and configured for your app. See Marketing Cloud Cordova Plugin.

To enable push support for the Android platform, provide your Firebase Cloud Messaging (FCM) credentials by including the google-services.json file in your config.xml file.

  1. Download the google-services.json file for your app from the Firebase console.

  2. Place the google-services.json file in your project’s root folder.

  3. In the config.xml file for your app, add this code to the Android element.