Firebase Message

Send In-App Message using Ionic 5 and FirebaseMessaging

Posted by
Send Push notification
We guide step by step tutorial on sending In-App Messaging on Mobile App using Ionic 5 and Firebase Cloud Messaging (FCM)

Indexing of development :

  • Setup and install the ionic framework
  • Configure the firebase on Firebase console
  • Create an ionic 5 application and platform setup
  • Install firebase along with Capacitor setup
  • Run and test the project

Required tools :

  • Node JS
  • Angular 8
  • Ionic 5
  • Cordova
  • Google FCM
  • Ionic 5 Cordova Native FCM
  • Terminal or Command Line
  • IDE or Text Editor (We are using Visual Studio Code)

Let’s start the development

Before going move-forward and according to the principal steps, we believe that you have already to install NodeJS. If not, kindly download it using the link: NodeJS

Step 1: Setup and install the ionic framework

$ sudo npm install -g ionic
$ sudo ionic -v

You need to install the ionic framework, to full-fill the requirement to create an ionic project.

Ionic Installation
Install the ionic framework and check the version

Configure the firebase on Firebase console

Setup Firebase
Setup Firebase

Open the terminal and click on Add Project…

Enter your project name

Enable google analytics and other usual thing…

Enable Google Analytics if you do so
Enter Google Analytics account name or choose existing one…
Google Analytics Confirmation
Firebase setup done

Step 3 : Create an ionic 5 application and platform setup

Now it times to set up the new ionic 5 application, please use the below command and run it to your terminal or command prompt.

$ ionic start send_push_notification blank --type=angular

  ? Integrate your new app with Capacitor to target native iOS and Android? Yes

If see the above question … Choose Yes. It will integrate the Capacitor instead of Cordova as Native accessibility

Successfully installed

Now it’s time to move in to your app folder

$ cd ./send_push_notification

Run your app using below ionic command

$ ionic serve -l
Application is running on your Mac/Window default bowser

Setup 4 :Install firebase along with Capacitor setup:

$ npm install cordova-plugin-firebasex
$ npm install @ionic-native/firebase-x
$ ionic cap sync

Import the firebase in app-module.ts file

Import FirebaseX in root app-module.ts file

Replace the project appId in capacitor.config.json file, which will use as a package-name and bundle-id in android and iOS respectively.

In our case it’s : io.ionic.notification

Setup Project Name
Setup Project Name

Add Firebase console and choose a Project Setting from left-top most corner

Select the android icon button present in page
Enter package name : io.ionic.notification as we already add as appId in capacitor.config.json

Choose the Android package name : io.ionic.notification, which will use as package name in our android project

Download google-services.json file

Download google-services.json file and save it in your project root folder

Now back to the terminal/command prompt window and add android and iOS native platform in your app

$ ionic capacitor add android
$ ionic capacitor add ios
Android platform add successfully
$ npx cap open android

Add google-service.json file in to /android/app folder.

Run the project in Android Studio.

Send In-App message via Firebase Console.

In_app Messaging
In_app Messaging
In_app Messaging
In_app Messaging
In_app Messaging
In_app Messaging

That’s it. You are successfully send a In-App Message via ionic 5 and Capcitor.


Yogesh Patil


  1. Eschewing what the law states of primogeniture, in that the firstborn child inherited everything, the French chose equal inheritance. Maribeth Lonnard England

  2. What as up to all, how is everything, I think every one is getting more from this website, and your views are good in support of new visitors. Doralynne Kippar Quintie

  3. I love all of the points you have made here. Thanks for writing this. Thumbs up! I like the helpful information you provide in your posts. Stace Reider Drooff

  4. Hello colleagues, how is everything, and what you wish for to say regarding this piece of writing, in my view its really awesome designed for me. Roxanna Corbin Hovey

  5. You completed several fine points there. I did a search on the issue and found nearly all persons will go along with with your blog. Yolane Myles Tekla

  6. It is with sad regret to inform you is shutting down.
    It has been a tough year all round and we decided to go out with a bang!

    Any group of databases listed below is $49 or $149 for all 16 databases in this one time offer.
    You can purchase it at and view samples.

    – LinkedIn Database
    43,535,433 LinkedIn Records

    – USA B2B Companies Database
    28,147,835 Companies

    – Forex
    Forex South Africa 113,550 Forex Traders
    Forex Australia 135,696 Forex Traders
    Forex UK 779,674 Forex Traders

    – UK Companies Database
    521,303 Companies

    – German Databases
    German Companies Database: 2,209,191 Companies
    German Executives Database: 985,048 Executives

    – Australian Companies Database
    1,806,596 Companies

    – UAE Companies Database
    950,652 Companies

    – Affiliate Marketers Database
    494,909 records

    – South African Databases
    B2B Companies Database: 1,462,227 Companies
    Directors Database: 758,834 Directors
    Healthcare Database: 376,599 Medical Professionals
    Wholesalers Database: 106,932 Wholesalers
    Real Estate Agent Database: 257,980 Estate Agents
    Forex South Africa: 113,550 Forex Traders

    Visit or contact us with any queries.

    Kind Regards,

  7. I stopped at the image of the prom in the field with the waving grass, all the slow dancers 6 feet from one another. I closed my eyes and I watched from the road. Janie Ruperto Robinetta

  8. This site appears to recieve a large ammount of visitors. How do you promote it? It gives a nice unique spin on things. I guess having something real or substantial to give info on is the most important thing.

  9. Thanks for this informational publocation. I think helpful to everyone who is interested in the possibility of learning from this. Carol-Jean Rolph Dode

  10. I think this is among the most vital information for me. And i am glad reading your article. But should remark on some general things, The website style is perfect, the articles is really nice : D. Good job, cheers Anne-Marie Dexter Husein

Leave a Reply

Your email address will not be published. Required fields are marked *