Hi, I am using <plugin name="cordova-plugin-firebase-messaging" /> which is fine on iOS builds but for some reason it doesn’t seem to be installing on android builds.
Having looked at the build log it looks like it says it was installed but in the app I get undefined when I try to call the plugin.
Also its not listed in the plugin files when I use chrome://inspect.
I have tried to build again, after checking the log in more depth i found this note
Installing "cordova-plugin-firebase-messaging" for android
Plugin doesnt support this project's cordova-android version. cordova-android: 9.1.0, failed version requirement: >=11.0.0
Skipping 'cordova-plugin-firebase-messaging' for android
All other plugins are working, no open related issues for this plugin.
Android 12 SOLVED:
When you add <engine name="android" spec="11.0.0" /> to the config file DO NOT put it inside the <platform name="android" > tags, otherwise it gets ignored.
minSdkVersion : must be set to at least 21. android-targetSdkVersion : 31 cordova-plugin-x-socialsharing: Is currently not compatible with Android 12.
This version works with Android 12 <plugin name="cordova-plugin-x-socialsharing-android12" />
The "<splash>" tags were detected and are no longer supported. Please migrate to the “preference” tag “AndroidWindowSplashScreenAnimatedIcon”
The “AndroidWindowSplashScreenAnimatedIcon” is undefined. Cordova’s default will be used.
The “AndroidWindowSplashScreenBrandingImage” is undefined. Cordova’s default will be used.
Wrote out Android application SplashScreen Icon Color to /platforms/android/app/src/main/res/values/colors.xml
Wrote out Android application themes to /platforms/android/app/src/main/res/values/themes.xml
delete platforms/android/app/src/main/res/mipmap-hdpi-v26/ic_launcher.xml (no source)
delete platforms/android/app/src/main/res/mipmap-hdpi-v26/ic_launcher_background.png (no source)
delete platforms/android/app/src/main/res/mipmap-hdpi-v26/ic_launcher_foreground.png (no source)