| Steps to Reproduce: |
Install latest version of cordova {code} npm install -g cordova {code} create a new cordova app {code} cordova create test cd test/ {code} edit the config.xml: {code} <?xml version='1.0' encoding='utf-8'?> <widget id="io.cordova.hellocordova" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" xmlns:android="http://schemas.android.com/apk/res/android"> <name>HelloCordova</name> <description> A sample Apache Cordova application that responds to the deviceready event. </description> <author email="dev@cordova.apache.org" href="http://cordova.io"> Apache Cordova Team </author> <content src="index.html" /> <plugin name="cordova-plugin-whitelist" spec="1" /> <access origin="*" /> <allow-intent href="http://*/*" /> <allow-intent href="https://*/*" /> <allow-intent href="tel:*" /> <allow-intent href="sms:*" /> <allow-intent href="mailto:*" /> <allow-intent href="geo:*" /> <platform name="android"> <allow-intent href="market:*" /> <edit-config file="AndroidManifest.xml" mode="merge" target="/manifest/application"> <application android:usesCleartextTraffic="true" /> </edit-config> <resource-file src="google-services.json" target="app/google-services.json" /> </platform> <platform name="ios"> <allow-intent href="itms:*" /> <allow-intent href="itms-apps:*" /> </platform> </widget> {code} add the cordova-plugin-aerogear-push {code} cordova plugin add @aerogear/cordova-plugin-aerogear-push {code} create a fake google-services.json {code} { "project_info": { "project_number": "1", "firebase_url": "https://a.firebaseio.com", "project_id": "a", "storage_bucket": "a.appspot.com" }, "client": [ { "client_info": { "mobilesdk_app_id": "1:1:android:a", "android_client_info": { "package_name": "io.cordova.hellocordova" } }, "oauth_client": [ { "client_id": "1-a.apps.googleusercontent.com", "client_type": 3 } ], "api_key": [ { "current_key": "a" } ], "services": { "appinvite_service": { "other_platform_oauth_client": [ { "client_id": "1-a.apps.googleusercontent.com", "client_type": 3 } ] } } } ], "configuration_version": "1" } {code} build the android app {code} cordova platform add android cordova build android {code} verify then the AndroidManifest.xml {code} cat platforms/android/app/src/main/AndroidManifest.xml {code} |