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.
-
Download the
google-services.jsonfile for your app from the Firebase console. -
Place the
google-services.jsonfile in your project’s root folder. -
In the
config.xmlfile for your app, add this code to theAndroidelement.