Closed AbdullaevTimur closed 4 years ago
But if you remove, the data won't show up on FCMPlugin.onNotification(function(data){}))
This issue looks like https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated/issues/35
Would you share your AndroidManifest.xml file?
This is my AndroidManifest.xml, which I get after build app with cordova@8.1.2:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="app.xxx"
android:hardwareAccelerated="true"
android:versionCode="40"
android:versionName="0.9.9911" >
<uses-sdk
android:minSdkVersion="19"
android:targetSdkVersion="28" />
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:resizeable="true"
android:smallScreens="true"
android:xlargeScreens="true" />
<uses-permission android:name="android.permission.INTERNET" />
<!-- for android -->
<!-- <uses-permission android:name="com.android.launcher.permission.READ_SETTINGS"/> -->
<!-- <uses-permission android:name="com.android.launcher.permission.WRITE_SETTINGS"/> -->
<!-- <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" /> -->
<!-- <uses-permission android:name="com.android.launcher.permission.UNINSTALL_SHORTCUT" /> -->
<!-- for Samsung -->
<uses-permission android:name="com.sec.android.provider.badge.permission.READ" />
<uses-permission android:name="com.sec.android.provider.badge.permission.WRITE" /> <!-- for htc -->
<uses-permission android:name="com.htc.launcher.permission.READ_SETTINGS" />
<uses-permission android:name="com.htc.launcher.permission.UPDATE_SHORTCUT" /> <!-- for sony -->
<uses-permission android:name="com.sonyericsson.home.permission.BROADCAST_BADGE" />
<uses-permission android:name="com.sonymobile.home.permission.PROVIDER_INSERT_BADGE" /> <!-- for apex -->
<uses-permission android:name="com.anddoes.launcher.permission.UPDATE_COUNT" /> <!-- for solid -->
<uses-permission android:name="com.majeur.launcher.permission.UPDATE_BADGE" /> <!-- for huawei -->
<uses-permission android:name="com.huawei.android.launcher.permission.CHANGE_BADGE" />
<uses-permission android:name="com.huawei.android.launcher.permission.READ_SETTINGS" />
<uses-permission android:name="com.huawei.android.launcher.permission.WRITE_SETTINGS" /> <!-- for ZUK -->
<uses-permission android:name="android.permission.READ_APP_BADGE" /> <!-- for OPPO -->
<uses-permission android:name="com.oppo.launcher.permission.READ_SETTINGS" />
<uses-permission android:name="com.oppo.launcher.permission.WRITE_SETTINGS" /> <!-- for EvMe -->
<uses-permission android:name="me.everything.badger.permission.BADGE_COUNT_READ" />
<uses-permission android:name="me.everything.badger.permission.BADGE_COUNT_WRITE" />
<uses-permission android:name="android.permission.CAMERA" /> <!-- Don't require camera, as this requires a rear camera. This allows it to work on the Nexus 7 -->
<uses-feature
android:name="android.hardware.camera"
android:required="false" />
<uses-feature
android:name="android.hardware.camera.front"
android:required="false" /> <!-- TODO replace above two with next line after Android 4.2 -->
<!-- <uses-feature android:name="android.hardware.camera.any"/> -->
<uses-feature
android:name="android.hardware.camera.autofocus"
android:required="false" />
<uses-feature
android:name="android.hardware.camera.flash"
android:required="false" />
<uses-feature
android:name="android.hardware.screen.landscape"
android:required="false" />
<uses-feature
android:name="android.hardware.wifi"
android:required="false" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" /> <!-- Required by older versions of Google Play services to create IID tokens -->
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<application
android:name="androidx.multidex.MultiDexApplication"
android:appComponentFactory="androidx.core.app.CoreComponentFactory"
android:debuggable="true"
android:hardwareAccelerated="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true" >
<activity
android:name="app.xxx.MainActivity"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
android:label="@string/activity_name"
android:launchMode="singleInstance"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.DeviceDefault.NoActionBar"
android:windowSoftInputMode="adjustResize" >
<intent-filter android:label="@string/launcher_name" >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.intentfilter.androidpermissions.PermissionsActivity"
android:excludeFromRecents="true"
android:theme="@style/AppTheme.Transparent" />
<activity
android:name="com.journeyapps.barcodescanner.CaptureActivity"
android:clearTaskOnLaunch="true"
android:screenOrientation="sensorLandscape"
android:stateNotNeeded="true"
android:theme="@style/zxing_CaptureTheme"
android:windowSoftInputMode="stateAlwaysHidden" />
<activity
android:name="com.facebook.FacebookActivity"
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:theme="@style/com_facebook_activity_theme" />
<activity android:name="com.facebook.CustomTabMainActivity" />
<activity android:name="com.facebook.CustomTabActivity" />
<!--
FirebaseMessagingService performs security checks at runtime,
but set to not exported to explicitly avoid allowing another app to call it.
-->
<service
android:name="com.google.firebase.messaging.FirebaseMessagingService"
android:exported="false" >
<intent-filter android:priority="-500" >
<action android:name="com.google.firebase.MESSAGING_EVENT" />
</intent-filter>
</service>
<service
android:name="com.google.firebase.components.ComponentDiscoveryService"
android:exported="false" >
<meta-data
android:name="com.google.firebase.components:com.google.firebase.iid.Registrar"
android:value="com.google.firebase.components.ComponentRegistrar" />
</service>
<receiver
android:name="com.google.firebase.iid.FirebaseInstanceIdReceiver"
android:exported="true"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
</intent-filter>
</receiver>
<provider
android:name="com.google.firebase.provider.FirebaseInitProvider"
android:authorities="app.xxx.firebaseinitprovider"
android:exported="false"
android:initOrder="100" />
<activity
android:name="com.google.android.gms.common.api.GoogleApiActivity"
android:exported="false"
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<!--
The initialization ContentProvider will call FacebookSdk.sdkInitialize automatically
with the application context. This config is merged in with the host app's manifest,
but there can only be one provider with the same authority activated at any given
point; so if the end user has two or more different apps that use Facebook SDK, only the
first one will be able to use the provider. To work around this problem, we use the
following placeholder in the authority to identify each host application as if it was
a completely different provider.
-->
<provider
android:name="com.facebook.internal.FacebookInitProvider"
android:authorities="app.xxx.FacebookInitProvider"
android:exported="false" />
<receiver
android:name="com.facebook.CurrentAccessTokenExpirationBroadcastReceiver"
android:exported="false" >
<intent-filter>
<action android:name="com.facebook.sdk.ACTION_CURRENT_ACCESS_TOKEN_CHANGED" />
</intent-filter>
</receiver>
</application>
</manifest>
and this is my android.json:
{
"prepare_queue": {
"installed": [],
"uninstalled": []
},
"config_munge": {
"files": {
"AndroidManifest.xml": {
"parents": {
"/manifest/application": [
{
"xml": "<meta-data android:name=\"com.google.android.gms.version\" android:value=\"@integer/google_play_services_version\" />",
"count": 1
},
{
"xml": "<service android:exported=\"true\" android:name=\"com.marianhello.bgloc.sync.SyncService\" android:process=\":sync\"><intent-filter><action android:name=\"android.content.SyncAdapter\" /></intent-filter><meta-data android:name=\"android.content.SyncAdapter\" android:resource=\"@xml/syncadapter\" /></service>",
"count": 1
},
{
"xml": "<service android:name=\"com.marianhello.bgloc.sync.AuthenticatorService\"><intent-filter><action android:name=\"android.accounts.AccountAuthenticator\" /></intent-filter><meta-data android:name=\"android.accounts.AccountAuthenticator\" android:resource=\"@xml/authenticator\" /></service>",
"count": 1
},
{
"xml": "<provider android:authorities=\"@string/mauron85_bgloc_content_authority\" android:exported=\"false\" android:name=\"com.marianhello.bgloc.data.provider.LocationContentProvider\" android:syncable=\"true\" />",
"count": 1
},
{
"xml": "<service android:enabled=\"true\" android:exported=\"false\" android:name=\"com.marianhello.bgloc.service.LocationServiceImpl\" />",
"count": 1
},
{
"xml": "<receiver android:enabled=\"true\" android:exported=\"true\" android:name=\"com.marianhello.bgloc.BootCompletedReceiver\"><intent-filter><action android:name=\"android.intent.action.BOOT_COMPLETED\" /></intent-filter></receiver>",
"count": 1
},
{
"xml": "<activity android:exported=\"true\" android:launchMode=\"singleTop\" android:name=\"com.gae.scaffolder.plugin.FCMPluginActivity\"><intent-filter><action android:name=\"FCM_PLUGIN_ACTIVITY\" /><category android:name=\"android.intent.category.DEFAULT\" /></intent-filter></activity>",
"count": 1
},
{
"xml": "<service android:name=\"com.gae.scaffolder.plugin.MyFirebaseMessagingService\" android:stopWithTask=\"false\"><intent-filter><action android:name=\"com.google.firebase.MESSAGING_EVENT\" /></intent-filter></service>",
"count": 1
},
{
"xml": "<meta-data android:name=\"com.google.firebase.messaging.default_notification_icon\" android:resource=\"@mipmap/ic_launcher\" />",
"count": 1
},
{
"xml": "<provider android:authorities=\"${applicationId}.provider\" android:exported=\"false\" android:grantUriPermissions=\"true\" android:name=\"de.appplant.cordova.plugin.notification.util.AssetProvider\"><meta-data android:name=\"android.support.FILE_PROVIDER_PATHS\" android:resource=\"@xml/localnotification_provider_paths\" /></provider>",
"count": 1
},
{
"xml": "<receiver android:exported=\"false\" android:name=\"de.appplant.cordova.plugin.localnotification.TriggerReceiver\" />",
"count": 1
},
{
"xml": "<receiver android:exported=\"false\" android:name=\"de.appplant.cordova.plugin.localnotification.ClearReceiver\" />",
"count": 1
},
{
"xml": "<activity android:exported=\"false\" android:launchMode=\"singleInstance\" android:name=\"de.appplant.cordova.plugin.localnotification.ClickReceiver\" android:theme=\"@android:style/Theme.Translucent\" />",
"count": 1
}
],
"/manifest": [
{
"xml": "<uses-permission android:name=\"android.permission.AUTHENTICATE_ACCOUNTS\" />",
"count": 1
},
{
"xml": "<uses-permission android:name=\"android.permission.READ_SYNC_SETTINGS\" />",
"count": 1
},
{
"xml": "<uses-permission android:name=\"android.permission.WRITE_SYNC_SETTINGS\" />",
"count": 1
},
{
"xml": "<uses-permission android:name=\"android.permission.RECEIVE_BOOT_COMPLETED\" />",
"count": 1
},
{
"xml": "<uses-permission android:name=\"com.google.android.gms.permission.ACTIVITY_RECOGNITION\" />",
"count": 1
},
{
"xml": "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\" />",
"count": 1
},
{
"xml": "<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\" />",
"count": 1
},
{
"xml": "<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\" />",
"count": 1
},
{
"xml": "<uses-permission android:name=\"android.permission.ACCESS_LOCATION_EXTRA_COMMANDS\" />",
"count": 1
},
{
"xml": "<uses-permission android:name=\"android.permission.INTERNET\" />",
"count": 1
},
{
"xml": "<uses-permission android:name=\"android.permission.WAKE_LOCK\" />",
"count": 2
},
{
"xml": "<uses-permission android:name=\"android.permission.FOREGROUND_SERVICE\" />",
"count": 1
},
{
"xml": "<uses-permission android:name=\"android.hardware.location\" />",
"count": 1
},
{
"xml": "<uses-permission android:name=\"android.permission.READ_CALENDAR\" />",
"count": 1
},
{
"xml": "<uses-permission android:name=\"android.permission.WRITE_CALENDAR\" />",
"count": 1
}
],
"/*": [
{
"xml": "<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\" />",
"count": 4
},
{
"xml": "<uses-permission android:name=\"android.permission.READ_CONTACTS\" />",
"count": 1
},
{
"xml": "<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\" />",
"count": 2
},
{
"xml": "<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\" />",
"count": 2
},
{
"xml": "<uses-permission android:name=\"android.permission.READ_EXTERNAL_STORAGE\" />",
"count": 2
},
{
"xml": "<uses-feature android:name=\"android.hardware.location.gps\" />",
"count": 1
},
{
"xml": "<uses-permission android:name=\"android.permission.RECORD_AUDIO\" />",
"count": 2
},
{
"xml": "<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\" />",
"count": 1
},
{
"xml": "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\" />",
"count": 1
},
{
"xml": "<uses-permission android:name=\"android.permission.RECORD_VIDEO\" />",
"count": 1
},
{
"xml": "<uses-permission android:name=\"android.permission.CAMERA\" android:required=\"false\" />",
"count": 1
},
{
"xml": "<uses-feature android:name=\"android.hardware.camera\" android:required=\"false\" />",
"count": 1
},
{
"xml": "<uses-feature android:name=\"android.hardware.camera.front\" android:required=\"false\" />",
"count": 1
}
],
"application": [
{
"xml": "<provider android:authorities=\"${applicationId}.provider\" android:exported=\"false\" android:grantUriPermissions=\"true\" android:name=\"android.support.v4.content.FileProvider\"><meta-data android:name=\"android.support.FILE_PROVIDER_PATHS\" android:resource=\"@xml/provider_paths\" /></provider>",
"count": 1
},
{
"xml": "<provider android:authorities=\"${applicationId}.opener.provider\" android:exported=\"false\" android:grantUriPermissions=\"true\" android:name=\"io.github.pwlin.cordova.plugins.fileopener2.FileProvider\"><meta-data android:name=\"android.support.FILE_PROVIDER_PATHS\" android:resource=\"@xml/opener_paths\" /></provider>",
"count": 1
},
{
"xml": "<meta-data android:name=\"com.facebook.sdk.ApplicationId\" android:value=\"@string/fb_app_id\" />",
"count": 1
},
{
"xml": "<meta-data android:name=\"com.facebook.sdk.ApplicationName\" android:value=\"@string/fb_app_name\" />",
"count": 1
},
{
"xml": "<activity android:configChanges=\"keyboard|keyboardHidden|screenLayout|screenSize|orientation\" android:label=\"@string/fb_app_name\" android:name=\"com.facebook.FacebookActivity\" />",
"count": 1
}
]
}
},
"res/xml/config.xml": {
"parents": {
"/*": [
{
"xml": "<feature name=\"BackgroundGeolocation\"><param name=\"android-package\" value=\"com.tenforwardconsulting.bgloc.cordova.BackgroundGeolocationPlugin\" /></feature>",
"count": 1
},
{
"xml": "<feature name=\"Calendar\"><param name=\"android-package\" value=\"nl.xservices.plugins.Calendar\" /></feature>",
"count": 1
},
{
"xml": "<feature name=\"Camera\"><param name=\"android-package\" value=\"org.apache.cordova.camera.CameraLauncher\" /></feature>",
"count": 1
},
{
"xml": "<feature name=\"ContactsPhoneNumbers\"><param name=\"android-package\" value=\"com.dbaq.cordova.contactsPhoneNumbers.ContactsManager\" /></feature>",
"count": 1
},
{
"xml": "<feature name=\"UniversalLinks\"><param name=\"android-package\" value=\"com.nordnetab.cordova.ul.UniversalLinksPlugin\" /><param name=\"onload\" value=\"true\" /></feature>",
"count": 1
},
{
"xml": "<feature name=\"Device\"><param name=\"android-package\" value=\"org.apache.cordova.device.Device\" /></feature>",
"count": 1
},
{
"xml": "<feature name=\"Compass\"><param name=\"android-package\" value=\"org.apache.cordova.deviceorientation.CompassListener\" /></feature>",
"count": 1
},
{
"xml": "<feature name=\"Notification\"><param name=\"android-package\" value=\"org.apache.cordova.dialogs.Notification\" /></feature>",
"count": 1
},
{
"xml": "<feature name=\"FCMPlugin\"><param name=\"android-package\" value=\"com.gae.scaffolder.plugin.FCMPlugin\" /><param name=\"onload\" value=\"true\" /></feature>",
"count": 1
},
{
"xml": "<feature name=\"File\"><param name=\"android-package\" value=\"org.apache.cordova.file.FileUtils\" /><param name=\"onload\" value=\"true\" /></feature>",
"count": 1
},
{
"xml": "<allow-navigation href=\"cdvfile:*\" />",
"count": 1
},
{
"xml": "<feature name=\"FileOpener2\"><param name=\"android-package\" value=\"io.github.pwlin.cordova.plugins.fileopener2.FileOpener2\" /></feature>",
"count": 1
},
{
"xml": "<feature name=\"Geolocation\"><param name=\"android-package\" value=\"org.apache.cordova.geolocation.Geolocation\" /></feature>",
"count": 1
},
{
"xml": "<feature name=\"InAppBrowser\"><param name=\"android-package\" value=\"org.apache.cordova.inappbrowser.InAppBrowser\" /></feature>",
"count": 1
},
{
"xml": "<feature name=\"LocalNotification\"><param name=\"android-package\" value=\"de.appplant.cordova.plugin.localnotification.LocalNotification\" /></feature>",
"count": 1
},
{
"xml": "<feature name=\"Media\"><param name=\"android-package\" value=\"org.apache.cordova.media.AudioHandler\" /></feature>",
"count": 1
},
{
"xml": "<feature name=\"Capture\"><param name=\"android-package\" value=\"org.apache.cordova.mediacapture.Capture\" /></feature>",
"count": 1
},
{
"xml": "<feature name=\"QRScanner\"><param name=\"android-package\" value=\"com.bitpay.cordova.qrscanner.QRScanner\" /></feature>",
"count": 1
},
{
"xml": "<feature name=\"Whitelist\"><param name=\"android-package\" value=\"org.apache.cordova.whitelist.WhitelistPlugin\" /><param name=\"onload\" value=\"true\" /></feature>",
"count": 1
},
{
"xml": "<feature name=\"FacebookConnectPlugin\"><param name=\"android-package\" value=\"org.apache.cordova.facebook.ConnectPlugin\" /><param name=\"onload\" value=\"true\" /></feature>",
"count": 1
},
{
"xml": "<access origin=\"https://m.facebook.com\" />",
"count": 1
},
{
"xml": "<access origin=\"https://graph.facebook.com\" />",
"count": 1
},
{
"xml": "<access origin=\"https://api.facebook.com\" />",
"count": 1
},
{
"xml": "<access origin=\"https://*.fbcdn.net\" />",
"count": 1
},
{
"xml": "<access origin=\"https://*.akamaihd.net\" />",
"count": 1
},
{
"xml": "<preference name=\"android-minSdkVersion\" value=\"15\" />",
"count": 1
}
]
}
},
"res/values/strings.xml": {
"parents": {
"/resources": [
{
"xml": "<string name=\"mauron85_bgloc_account_name\">@string/app_name</string>",
"count": 1
},
{
"xml": "<string name=\"mauron85_bgloc_account_type\">app.xxx.account</string>",
"count": 1
},
{
"xml": "<string name=\"mauron85_bgloc_content_authority\">app.xxx</string>",
"count": 1
}
]
}
},
"res/xml/authenticator.xml": {
"parents": {
"/*": [
{
"xml": "<account-authenticator android:accountType=\"@string/mauron85_bgloc_account_type\" android:icon=\"@mipmap/icon\" android:label=\"@string/app_name\" android:smallIcon=\"@mipmap/icon\" xmlns:android=\"http://schemas.android.com/apk/res/android\" />",
"count": 1,
"mode": "overwrite",
"plugin": "cordova-plugin-background-geolocation",
"oldAttrib": {
"android:accountType": "@string/mauron85_bgloc_account_type",
"android:icon": "@mipmap/icon",
"android:label": "@string/app_name",
"android:smallIcon": "@mipmap/icon",
"xmlns:android": "http://schemas.android.com/apk/res/android"
}
}
]
}
},
"res/xml/syncadapter.xml": {
"parents": {
"/*": [
{
"xml": "<sync-adapter android:accountType=\"@string/mauron85_bgloc_account_type\" android:allowParallelSyncs=\"false\" android:contentAuthority=\"@string/mauron85_bgloc_content_authority\" android:isAlwaysSyncable=\"true\" android:supportsUploading=\"true\" android:userVisible=\"false\" xmlns:android=\"http://schemas.android.com/apk/res/android\" />",
"count": 1,
"mode": "overwrite",
"plugin": "cordova-plugin-background-geolocation",
"oldAttrib": {
"android:accountType": "@string/mauron85_bgloc_account_type",
"android:allowParallelSyncs": "false",
"android:contentAuthority": "@string/mauron85_bgloc_content_authority",
"android:isAlwaysSyncable": "true",
"android:supportsUploading": "true",
"android:userVisible": "false",
"xmlns:android": "http://schemas.android.com/apk/res/android"
}
}
]
}
},
"config.xml": {
"parents": {
"/*": [
{
"xml": "<feature name=\"Badge\"><param name=\"android-package\" value=\"de.appplant.cordova.plugin.badge.Badge\" /></feature>",
"count": 1
}
]
}
},
"res/values/facebookconnect.xml": {
"parents": {
"/*": [
{
"xml": "<string name=\"fb_app_id\">xxx</string>",
"count": 1
},
{
"xml": "<string name=\"fb_app_name\">xxx</string>",
"count": 1
}
]
}
}
}
},
"installed_plugins": {
"cordova-android-play-services-gradle-release": {
"PLAY-SERVICES-ADS": "18.0.0",
"PLAY-SERVICES-ADS-IDENTIFIER": "17.0.0",
"PLAY-SERVICES-ADS-LITE": "18.0.0",
"PLAY-SERVICES-AFS-NATIVE": "17.0.0",
"PLAY-SERVICES-ANALYTICS": "17.0.0",
"PLAY-SERVICES-ANALYTICS-IMPL": "17.0.0",
"PLAY-SERVICES-APPINVITE": "18.0.0",
"PLAY-SERVICES-AUDIENCE": "17.0.0",
"PLAY-SERVICES-AUTH": "17.0.0",
"PLAY-SERVICES-AUTH-API-PHONE": "17.0.0",
"PLAY-SERVICES-AWARENESS": "17.0.0",
"PLAY-SERVICES-BASE": "17.0.0",
"PLAY-SERVICES-BASEMENT": "17.0.0",
"PLAY-SERVICES-CAST": "17.0.0",
"PLAY-SERVICES-CAST-FRAMEWORK": "17.0.0",
"PLAY-SERVICES-CLEARCUT": "17.0.0",
"PLAY-SERVICES-CRONET": "17.0.0",
"PLAY-SERVICES-DRIVE": "17.0.0",
"PLAY-SERVICES-FIDO": "18.0.0",
"PLAY-SERVICES-FITNESS": "17.0.0",
"PLAY-SERVICES-FLAGS": "17.0.0",
"PLAY-SERVICES-GAMES": "18.0.0",
"PLAY-SERVICES-GASS": "18.0.0",
"PLAY-SERVICES-GCM": "17.0.0",
"PLAY-SERVICES-IDENTITY": "17.0.0",
"PLAY-SERVICES-IID": "17.0.0",
"PLAY-SERVICES-INSTANTAPPS": "17.0.0",
"PLAY-SERVICES-LOCATION": "17.0.0",
"PLAY-SERVICES-MAPS": "17.0.0",
"PLAY-SERVICES-MEASUREMENT": "17.0.0",
"PLAY-SERVICES-MEASUREMENT-API": "17.0.0",
"PLAY-SERVICES-MEASUREMENT-IMPL": "17.0.0",
"PLAY-SERVICES-MEASUREMENT-SDK": "17.0.0",
"PLAY-SERVICES-MEASUREMENT-SDK-API": "17.0.0",
"PLAY-SERVICES-NEARBY": "17.0.0",
"PLAY-SERVICES-OSS-LICENSES": "17.0.0",
"PLAY-SERVICES-PANORAMA": "17.0.0",
"PLAY-SERVICES-PHENOTYPE": "17.0.0",
"PLAY-SERVICES-PLACES": "17.0.0",
"PLAY-SERVICES-PLACES-PLACEREPORT": "17.0.0",
"PLAY-SERVICES-PLUS": "17.0.0",
"PLAY-SERVICES-SAFETYNET": "17.0.0",
"PLAY-SERVICES-STATS": "17.0.0",
"PLAY-SERVICES-TAGMANAGER": "17.0.0",
"PLAY-SERVICES-TAGMANAGER-API": "17.0.0",
"PLAY-SERVICES-TAGMANAGER-V4-IMPL": "17.0.0",
"PLAY-SERVICES-TASKS": "17.0.0",
"PLAY-SERVICES-VISION": "18.0.0",
"PLAY-SERVICES-VISION-COMMON": "18.0.0",
"PLAY-SERVICES-VISION-IMAGE-LABEL": "18.0.0",
"PLAY-SERVICES-WALLET": "17.0.0",
"PLAY-SERVICES-WEARABLE": "17.0.0",
"PACKAGE_NAME": "app.xxx"
},
"cordova-android-support-gradle-release": {
"ANDROID_SUPPORT_VERSION": "27.+",
"PACKAGE_NAME": "app.xxx"
},
"cordova-plugin-add-swift-support": {
"PACKAGE_NAME": "app.xxx"
},
"cordova-plugin-androidx": {
"PACKAGE_NAME": "app.xxx"
},
"cordova-plugin-androidx-adapter": {
"PACKAGE_NAME": "app.xxx"
},
"cordova-plugin-background-geolocation": {
"GOOGLE_PLAY_SERVICES_VERSION": "11+",
"ANDROID_SUPPORT_LIBRARY_VERSION": "26+",
"ICON": "@mipmap/icon",
"SMALL_ICON": "@mipmap/icon",
"ACCOUNT_NAME": "@string/app_name",
"ACCOUNT_LABEL": "@string/app_name",
"ACCOUNT_TYPE": "$PACKAGE_NAME.account",
"CONTENT_AUTHORITY": "$PACKAGE_NAME",
"PACKAGE_NAME": "app.xxx"
},
"cordova-plugin-badge": {
"PACKAGE_NAME": "app.xxx"
},
"cordova-plugin-calendar": {
"PACKAGE_NAME": "app.xxx"
},
"cordova-plugin-camera": {
"PACKAGE_NAME": "app.xxx"
},
"cordova-plugin-contacts-phone-numbers-emails": {
"PACKAGE_NAME": "app.xxx"
},
"cordova-plugin-deeplinks": {
"PACKAGE_NAME": "app.xxx"
},
"cordova-plugin-device": {
"PACKAGE_NAME": "app.xxx"
},
"cordova-plugin-device-orientation": {
"PACKAGE_NAME": "app.xxx"
},
"cordova-plugin-dialogs": {
"PACKAGE_NAME": "app.xxx"
},
"cordova-plugin-fcm-with-dependecy-updated": {
"FCM_VERSION": "19.0.0",
"GRADLE_TOOLS_VERSION": "3.5.3",
"GOOGLE_SERVICES_VERSION": "4.3.3",
"SUPPORT_LIBRARY_VERSION": "28.0.0",
"ANDROID_DEFAULT_NOTIFICATION_ICON": "@mipmap/ic_launcher",
"PACKAGE_NAME": "app.xxx"
},
"cordova-plugin-file": {
"PACKAGE_NAME": "app.xxx"
},
"cordova-plugin-file-opener2": {
"ANDROID_SUPPORT_V4_VERSION": "27.+",
"PACKAGE_NAME": "app.xxx"
},
"cordova-plugin-geolocation": {
"PACKAGE_NAME": "app.xxx"
},
"cordova-plugin-inappbrowser": {
"PACKAGE_NAME": "app.xxx"
},
"cordova-plugin-local-notification": {
"PACKAGE_NAME": "app.xxx"
},
"cordova-plugin-localization-strings": {
"TRANSLATION_PATH": "translations/app/",
"PACKAGE_NAME": "app.xxx"
},
"cordova-plugin-media": {
"PACKAGE_NAME": "app.xxx"
},
"cordova-plugin-media-capture": {
"PACKAGE_NAME": "app.xxx"
},
"cordova-plugin-multidex": {
"PACKAGE_NAME": "app.xxx"
},
"cordova-plugin-qrscanner": {
"PACKAGE_NAME": "app.xxx"
},
"cordova-plugin-whitelist": {
"PACKAGE_NAME": "app.xxx"
},
"cordova-plugin-wkwebview-engine": {
"PACKAGE_NAME": "app.xxx"
},
"cordova-support-android-plugin": {
"PACKAGE_NAME": "app.xxx"
},
"ee-cordova-plugin-facebook4": {
"APP_URL_SUFFIX": "",
"APP_ID": "xxx",
"APP_NAME": "xxx",
"ANDROID_SDK_VERSION": "4.+",
"PACKAGE_NAME": "app.xxx"
}
},
"dependent_plugins": {},
"modules": [
{
"id": "cordova-plugin-background-geolocation.BackgroundGeolocation",
"file": "plugins/cordova-plugin-background-geolocation/www/BackgroundGeolocation.js",
"pluginId": "cordova-plugin-background-geolocation",
"clobbers": [
"BackgroundGeolocation"
]
},
{
"id": "cordova-plugin-background-geolocation.radio",
"file": "plugins/cordova-plugin-background-geolocation/www/radio.js",
"pluginId": "cordova-plugin-background-geolocation"
},
{
"id": "cordova-plugin-badge.Badge",
"file": "plugins/cordova-plugin-badge/www/badge.js",
"pluginId": "cordova-plugin-badge",
"clobbers": [
"cordova.plugins.notification.badge"
]
},
{
"id": "cordova-plugin-calendar.Calendar",
"file": "plugins/cordova-plugin-calendar/www/Calendar.js",
"pluginId": "cordova-plugin-calendar",
"clobbers": [
"Calendar"
]
},
{
"id": "cordova-plugin-camera.Camera",
"file": "plugins/cordova-plugin-camera/www/CameraConstants.js",
"pluginId": "cordova-plugin-camera",
"clobbers": [
"Camera"
]
},
{
"id": "cordova-plugin-camera.CameraPopoverOptions",
"file": "plugins/cordova-plugin-camera/www/CameraPopoverOptions.js",
"pluginId": "cordova-plugin-camera",
"clobbers": [
"CameraPopoverOptions"
]
},
{
"id": "cordova-plugin-camera.camera",
"file": "plugins/cordova-plugin-camera/www/Camera.js",
"pluginId": "cordova-plugin-camera",
"clobbers": [
"navigator.camera"
]
},
{
"id": "cordova-plugin-camera.CameraPopoverHandle",
"file": "plugins/cordova-plugin-camera/www/CameraPopoverHandle.js",
"pluginId": "cordova-plugin-camera",
"clobbers": [
"CameraPopoverHandle"
]
},
{
"id": "cordova-plugin-contacts-phone-numbers-emails.contactsPhoneNumbers",
"file": "plugins/cordova-plugin-contacts-phone-numbers-emails/www/contactsPhoneNumbers.js",
"pluginId": "cordova-plugin-contacts-phone-numbers-emails",
"clobbers": [
"navigator.contactsPhoneNumbers"
]
},
{
"id": "cordova-plugin-deeplinks.universalLinks",
"file": "plugins/cordova-plugin-deeplinks/www/universal_links.js",
"pluginId": "cordova-plugin-deeplinks",
"clobbers": [
"universalLinks"
]
},
{
"id": "cordova-plugin-device.device",
"file": "plugins/cordova-plugin-device/www/device.js",
"pluginId": "cordova-plugin-device",
"clobbers": [
"device"
]
},
{
"id": "cordova-plugin-device-orientation.CompassError",
"file": "plugins/cordova-plugin-device-orientation/www/CompassError.js",
"pluginId": "cordova-plugin-device-orientation",
"clobbers": [
"CompassError"
]
},
{
"id": "cordova-plugin-device-orientation.CompassHeading",
"file": "plugins/cordova-plugin-device-orientation/www/CompassHeading.js",
"pluginId": "cordova-plugin-device-orientation",
"clobbers": [
"CompassHeading"
]
},
{
"id": "cordova-plugin-device-orientation.compass",
"file": "plugins/cordova-plugin-device-orientation/www/compass.js",
"pluginId": "cordova-plugin-device-orientation",
"clobbers": [
"navigator.compass"
]
},
{
"id": "cordova-plugin-dialogs.notification",
"file": "plugins/cordova-plugin-dialogs/www/notification.js",
"pluginId": "cordova-plugin-dialogs",
"merges": [
"navigator.notification"
]
},
{
"id": "cordova-plugin-dialogs.notification_android",
"file": "plugins/cordova-plugin-dialogs/www/android/notification.js",
"pluginId": "cordova-plugin-dialogs",
"merges": [
"navigator.notification"
]
},
{
"id": "cordova-plugin-fcm-with-dependecy-updated.FCMPlugin",
"file": "plugins/cordova-plugin-fcm-with-dependecy-updated/www/FCMPlugin.js",
"pluginId": "cordova-plugin-fcm-with-dependecy-updated",
"clobbers": [
"FCMPlugin"
]
},
{
"id": "cordova-plugin-file.DirectoryEntry",
"file": "plugins/cordova-plugin-file/www/DirectoryEntry.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.DirectoryEntry"
]
},
{
"id": "cordova-plugin-file.DirectoryReader",
"file": "plugins/cordova-plugin-file/www/DirectoryReader.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.DirectoryReader"
]
},
{
"id": "cordova-plugin-file.Entry",
"file": "plugins/cordova-plugin-file/www/Entry.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.Entry"
]
},
{
"id": "cordova-plugin-file.File",
"file": "plugins/cordova-plugin-file/www/File.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.File"
]
},
{
"id": "cordova-plugin-file.FileEntry",
"file": "plugins/cordova-plugin-file/www/FileEntry.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.FileEntry"
]
},
{
"id": "cordova-plugin-file.FileError",
"file": "plugins/cordova-plugin-file/www/FileError.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.FileError"
]
},
{
"id": "cordova-plugin-file.FileReader",
"file": "plugins/cordova-plugin-file/www/FileReader.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.FileReader"
]
},
{
"id": "cordova-plugin-file.FileSystem",
"file": "plugins/cordova-plugin-file/www/FileSystem.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.FileSystem"
]
},
{
"id": "cordova-plugin-file.FileUploadOptions",
"file": "plugins/cordova-plugin-file/www/FileUploadOptions.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.FileUploadOptions"
]
},
{
"id": "cordova-plugin-file.FileUploadResult",
"file": "plugins/cordova-plugin-file/www/FileUploadResult.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.FileUploadResult"
]
},
{
"id": "cordova-plugin-file.FileWriter",
"file": "plugins/cordova-plugin-file/www/FileWriter.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.FileWriter"
]
},
{
"id": "cordova-plugin-file.Flags",
"file": "plugins/cordova-plugin-file/www/Flags.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.Flags"
]
},
{
"id": "cordova-plugin-file.LocalFileSystem",
"file": "plugins/cordova-plugin-file/www/LocalFileSystem.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.LocalFileSystem"
],
"merges": [
"window"
]
},
{
"id": "cordova-plugin-file.Metadata",
"file": "plugins/cordova-plugin-file/www/Metadata.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.Metadata"
]
},
{
"id": "cordova-plugin-file.ProgressEvent",
"file": "plugins/cordova-plugin-file/www/ProgressEvent.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.ProgressEvent"
]
},
{
"id": "cordova-plugin-file.fileSystems",
"file": "plugins/cordova-plugin-file/www/fileSystems.js",
"pluginId": "cordova-plugin-file"
},
{
"id": "cordova-plugin-file.requestFileSystem",
"file": "plugins/cordova-plugin-file/www/requestFileSystem.js",
"pluginId": "cordova-plugin-file",
"clobbers": [
"window.requestFileSystem"
]
},
{
"id": "cordova-plugin-file.resolveLocalFileSystemURI",
"file": "plugins/cordova-plugin-file/www/resolveLocalFileSystemURI.js",
"pluginId": "cordova-plugin-file",
"merges": [
"window"
]
},
{
"id": "cordova-plugin-file.isChrome",
"file": "plugins/cordova-plugin-file/www/browser/isChrome.js",
"pluginId": "cordova-plugin-file",
"runs": true
},
{
"id": "cordova-plugin-file.androidFileSystem",
"file": "plugins/cordova-plugin-file/www/android/FileSystem.js",
"pluginId": "cordova-plugin-file",
"merges": [
"FileSystem"
]
},
{
"id": "cordova-plugin-file.fileSystems-roots",
"file": "plugins/cordova-plugin-file/www/fileSystems-roots.js",
"pluginId": "cordova-plugin-file",
"runs": true
},
{
"id": "cordova-plugin-file.fileSystemPaths",
"file": "plugins/cordova-plugin-file/www/fileSystemPaths.js",
"pluginId": "cordova-plugin-file",
"merges": [
"cordova"
],
"runs": true
},
{
"id": "cordova-plugin-file-opener2.FileOpener2",
"file": "plugins/cordova-plugin-file-opener2/www/plugins.FileOpener2.js",
"pluginId": "cordova-plugin-file-opener2",
"clobbers": [
"cordova.plugins.fileOpener2"
]
},
{
"id": "cordova-plugin-geolocation.geolocation",
"file": "plugins/cordova-plugin-geolocation/www/android/geolocation.js",
"pluginId": "cordova-plugin-geolocation",
"clobbers": [
"navigator.geolocation"
]
},
{
"id": "cordova-plugin-geolocation.PositionError",
"file": "plugins/cordova-plugin-geolocation/www/PositionError.js",
"pluginId": "cordova-plugin-geolocation",
"runs": true
},
{
"id": "cordova-plugin-inappbrowser.inappbrowser",
"file": "plugins/cordova-plugin-inappbrowser/www/inappbrowser.js",
"pluginId": "cordova-plugin-inappbrowser",
"clobbers": [
"cordova.InAppBrowser.open",
"window.open"
]
},
{
"id": "cordova-plugin-local-notification.LocalNotification",
"file": "plugins/cordova-plugin-local-notification/www/local-notification.js",
"pluginId": "cordova-plugin-local-notification",
"clobbers": [
"cordova.plugins.notification.local"
]
},
{
"id": "cordova-plugin-local-notification.LocalNotification.Core",
"file": "plugins/cordova-plugin-local-notification/www/local-notification-core.js",
"pluginId": "cordova-plugin-local-notification",
"clobbers": [
"cordova.plugins.notification.local.core",
"plugin.notification.local.core"
]
},
{
"id": "cordova-plugin-local-notification.LocalNotification.Util",
"file": "plugins/cordova-plugin-local-notification/www/local-notification-util.js",
"pluginId": "cordova-plugin-local-notification",
"merges": [
"cordova.plugins.notification.local.core",
"plugin.notification.local.core"
]
},
{
"id": "cordova-plugin-media.MediaError",
"file": "plugins/cordova-plugin-media/www/MediaError.js",
"pluginId": "cordova-plugin-media",
"clobbers": [
"window.MediaError"
]
},
{
"id": "cordova-plugin-media.Media",
"file": "plugins/cordova-plugin-media/www/Media.js",
"pluginId": "cordova-plugin-media",
"clobbers": [
"window.Media"
]
},
{
"id": "cordova-plugin-media-capture.CaptureAudioOptions",
"file": "plugins/cordova-plugin-media-capture/www/CaptureAudioOptions.js",
"pluginId": "cordova-plugin-media-capture",
"clobbers": [
"CaptureAudioOptions"
]
},
{
"id": "cordova-plugin-media-capture.CaptureImageOptions",
"file": "plugins/cordova-plugin-media-capture/www/CaptureImageOptions.js",
"pluginId": "cordova-plugin-media-capture",
"clobbers": [
"CaptureImageOptions"
]
},
{
"id": "cordova-plugin-media-capture.CaptureVideoOptions",
"file": "plugins/cordova-plugin-media-capture/www/CaptureVideoOptions.js",
"pluginId": "cordova-plugin-media-capture",
"clobbers": [
"CaptureVideoOptions"
]
},
{
"id": "cordova-plugin-media-capture.CaptureError",
"file": "plugins/cordova-plugin-media-capture/www/CaptureError.js",
"pluginId": "cordova-plugin-media-capture",
"clobbers": [
"CaptureError"
]
},
{
"id": "cordova-plugin-media-capture.MediaFileData",
"file": "plugins/cordova-plugin-media-capture/www/MediaFileData.js",
"pluginId": "cordova-plugin-media-capture",
"clobbers": [
"MediaFileData"
]
},
{
"id": "cordova-plugin-media-capture.MediaFile",
"file": "plugins/cordova-plugin-media-capture/www/MediaFile.js",
"pluginId": "cordova-plugin-media-capture",
"clobbers": [
"MediaFile"
]
},
{
"id": "cordova-plugin-media-capture.helpers",
"file": "plugins/cordova-plugin-media-capture/www/helpers.js",
"pluginId": "cordova-plugin-media-capture",
"runs": true
},
{
"id": "cordova-plugin-media-capture.capture",
"file": "plugins/cordova-plugin-media-capture/www/capture.js",
"pluginId": "cordova-plugin-media-capture",
"clobbers": [
"navigator.device.capture"
]
},
{
"id": "cordova-plugin-media-capture.init",
"file": "plugins/cordova-plugin-media-capture/www/android/init.js",
"pluginId": "cordova-plugin-media-capture",
"runs": true
},
{
"id": "cordova-plugin-qrscanner.QRScanner",
"file": "plugins/cordova-plugin-qrscanner/www/www.min.js",
"pluginId": "cordova-plugin-qrscanner",
"clobbers": [
"QRScanner"
]
},
{
"id": "ee-cordova-plugin-facebook4.FacebookConnectPlugin",
"file": "plugins/ee-cordova-plugin-facebook4/www/facebook-native.js",
"pluginId": "ee-cordova-plugin-facebook4",
"clobbers": [
"facebookConnectPlugin"
]
}
],
"plugin_metadata": {
"cordova-android-play-services-gradle-release": "4.0.0",
"cordova-android-support-gradle-release": "3.0.1",
"cordova-plugin-add-swift-support": "2.0.2",
"cordova-plugin-androidx": "1.0.2",
"cordova-plugin-androidx-adapter": "1.1.0",
"cordova-plugin-background-geolocation": "3.1.0",
"cordova-plugin-badge": "0.8.8",
"cordova-plugin-calendar": "5.1.5",
"cordova-plugin-camera": "2.4.1",
"cordova-plugin-contacts-phone-numbers-emails": "0.0.1",
"cordova-plugin-deeplinks": "1.1.1",
"cordova-plugin-device": "1.1.7",
"cordova-plugin-device-orientation": "1.0.7",
"cordova-plugin-dialogs": "1.3.4",
"cordova-plugin-fcm-with-dependecy-updated": "6.4.0",
"cordova-plugin-file": "4.3.3",
"cordova-plugin-file-opener2": "3.0.0",
"cordova-plugin-geolocation": "2.4.3",
"cordova-plugin-inappbrowser": "3.2.0",
"cordova-plugin-local-notification": "0.9.0-beta.2",
"cordova-plugin-localization-strings": "3.2.1",
"cordova-plugin-media": "3.0.1",
"cordova-plugin-media-capture": "1.4.3",
"cordova-plugin-multidex": "0.1.2",
"cordova-plugin-qrscanner": "3.0.1",
"cordova-plugin-whitelist": "1.3.4",
"cordova-plugin-wkwebview-engine": "1.2.1",
"cordova-support-android-plugin": "1.0.2",
"ee-cordova-plugin-facebook4": "4.0.1"
}
}
That is so strange. You have it configure to add the xml tags, but they aren't in the AndroidManifest.xml.
That's a very interesting collection of plugins, btw
I'd try, at first, to add the lines bellow just after the line <activity android:name="com.facebook.CustomTabActivity" />
:
<activity android:exported="true" android:name="com.gae.scaffolder.plugin.FCMPluginActivity" android:launchMode="singleTop">
<intent-filter>
<action android:name="FCM_PLUGIN_ACTIVITY" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<service
android:name="com.gae.scaffolder.plugin.MyFirebaseMessagingService"
android:stopWithTask="false">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
</intent-filter>
</service>
<meta-data android:name="com.google.firebase.messaging.default_notification_icon" android:resource="@mipmap/ic_launcher" />
This was supposed to be done automatically on install, but for some issue, it didn't, or it was removed in the install procedure of another plugin.
If it doesn't work, let me know.
Yes! it works in this case!
Maybe it's a good idea to add a check to add "FCM_PLUGIN_ACTIVITY" to the "after_prepare" hook?
It shouldn't be required, but I'll keep in mind.
Maybe this helps. The xml lines were not making it into the AndroidManifest.xml, but when I replaced this edit-config in config.xml:
`
</edit-config>
`
with custom-preference using the cordova-custom-config plugin:
`
` then the plugin xml showed in the AndroidManifest.xml ok.
Looks like some issue when using edit-config.
Hi. I can not launch the app on Android after tapping notification if I have FCM_PLUGIN_ACTIVITY in my payload. But if i remove it - it`s ok.