How to use Firebase Messaging, Dynamic Links and Analytics with Quasar and Android 9

  • Hi guys!

    Perhaps many of you have been as lost as I when I tried to use Quasar / Cordova / Firebase Messaging … I’ll just summarize it, it took me weeks to understand how the plugins work and how Quasar works with Cordova (Although there are still many things not I understand)

    For that reason I am writing this post, I hope to help you with this.

    1. Read the post for Android 9.0.0 You will understand many things by reading that post.

    2. Update cordova run npm install -g cordova.

    3. Install the quasar mode for cordova run quasar mode add cordova

    4. after that go to the src-cordova folder

    5. run this cmd for install Android 9.0.0 cordova platform add android@9.0.0

    6. Install the plugins for firebase meesaging, Dynamics Links and Analytics

    cordova plugin add cordova-plugin-androidx-adapter
    cordova plugin add cordova-plugin-firebase-messaging
    cordova plugin add cordova-plugin-firebase-dynamiclinks --variable APP_DOMAIN_NAME=""

    PD: If you read item 1, you will understand why it is necessary to install cordova plugin add cordova-plugin-androidx-adapter plugin.

    PD1: To use Auth, Firestore, Realtime or another, SDK Client for Javascrip will be enough, however if you will use FCM you will need to install the last listed plugins.

    PD2: After to run the App, you need paste the google-service.json on the folder src-cordova

    1. finally, run the cmd for test de App quasar dev -m cordova -T android

  • Thanks!!!

Log in to reply