No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    cordova-plugin-fcm

    Help
    1
    2
    692
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ahiguita
      ahiguita last edited by

      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!

      1 Reply Last reply Reply Quote 1
      • ahiguita
        ahiguita last edited by ahiguita

        Hello

        This is the solution that I found to use Cordova and Firebase Messaging.

        1. 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
        1. 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 run quasar mode add cordova and go to the src-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 cmd cordova 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.

        1 Reply Last reply Reply Quote 1
        • First post
          Last post