cordova-plugin-fcm
-
Hello, does anyone know how to deal with this plugin? The handling of the push in Cordova has really been a headache.
I am having the following error:
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:compileDebugJavaWithJavac'. > Compilation failed; see the compiler error output for details.
In the gradle.properties file I have:
android.useAndroidX=true android.enableJetifier=true
and I add the following plugins:
- cordova-android-firebase-gradle-release
- cordova-android-play-services-gradle-release
- cordova-plugin-fcm-with-dependecy-updated
the query cmd used to run is:
quasar dev -m cordova -T android -p 8082"
If you have any idea how to solve this issue, please light my way, I’m lost!
-
Hello
This is the solution that I found to use Cordova and Firebase Messaging.
- First you need to remothe the folder
src-cordova
, Make a backup of the files and folder:
- ‘res’ folder
google-services.json
config.xml
package.json
- run the instructions according to https://quasar.dev/quasar-cli/developing-cordova-apps/preparation but with the following explanation:
2.1. Run
npm install -g cordova
this will install the last version available for cordova.
2.2. Later runquasar mode add cordova
and go to thesrc-cordova
folder.
2.3. After that, add the latest version of Android, which as of the date of this post is version 9.0.0, run the cmdcordova platform add android@9.0.0
2.4. next install the followings plugins:cordova plugin add cordova-plugin-androidx-adapter cordova plugin add cordova-plugin-firebase-messaging cordova plugin add cordova-plugin-firebase-dynamiclinks
2.5. Finally, if you maked a backup of the files, you need just restore the ‘res’ folder and the ‘google-service.json’… you can check
config.xml
file just for check you custom setup and the packege.json file for check the plugins installed. - First you need to remothe the folder