# Installing the Firebase Plugin for Mobile App Push Notification

**URL:** <https://forum.mautic.org/t/installing-the-firebase-plugin-for-mobile-app-push-notification/19999>\
**Category:** General Discussion\
**Created:** [June 29, 2021, 11:17am UTC](https://forum.mautic.org/t/installing-the-firebase-plugin-for-mobile-app-push-notification/19999 "2021-06-29T11:17:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)\
**Post date:** [June 29, 2021, 11:17am UTC](https://forum.mautic.org/t/installing-the-firebase-plugin-for-mobile-app-push-notification/19999/1 "2021-06-29T11:17:49Z")

</div>

Hi Everyone.

We have many clients that have apps and are running on firebase and obviously we wanted to integrate this with Mautic and have push notifications to mobile app inside campaigns.  
I went hunting to develop this plugin and then @joeyk told me that this plugin has been developed already.

I went and purchased it and began the installation procedure. I am techie, but not a programmer and can basically follow directions. I found the installation very challenging and it took me two days of hacking around and learning before I got it installed.

For a full explanation on how to install this plugin check out our latest [blog post](https://surge.media/installing-the-firebase-plugin-for-mobile-app-push-notification/).

Hope you find this useful.

Warning: After I have managed to install the plugin my campaigns were no longer working and I am opening a support ticket here on this.

---

<div class="post-metadata">

**Author:** ![ebola](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ebola/32/5961_2.png) [@ebola](https://forum.mautic.org/u/ebola)\
**Post date:** [October 5, 2021, 8:52am UTC](https://forum.mautic.org/t/installing-the-firebase-plugin-for-mobile-app-push-notification/19999/2 "2021-10-05T08:52:45Z")

</div>

Dear @mikew !

As we are the developers of the corresponding plugin, I just would like to write some official reactions here also to make more clear the situation to everybody 😉

The last some weeks wer very busy as we had to solve every problems what we did not think earlier.

We almost totally rewrote our documentation _(the user manual of the plugin)_, to make it more clear how anybody need to use it. I refined the installation process and dependency handling almost to indefinitely, and based on the experiments of our clients I also wrote lot more detailed informations about the usage. Not there is separated block for just debuggin, testing, etc. so I really hope I could make everythng lot more clearer than usually you can reach such informations about any softwares.

We are really sorry for the rough start, we discussed really a lot about the plugin, and now after your unlimited patience I hope we could iron out almost everything, and in the future we could focus on really new functions.

As currently we have available clients who successfully use the plugin, I think we could already solve all the problems.

If you have any further question, please do not hesitate and search for us, for me here or directly by email.

[The current 2.4.0 version](https://www.leadengine.hu/en/downloads/mautic-firebase-cloud-messaging-plugin/) is lot more friendlier than any earlier if anybody interested in.

Thanks again for your patience, and for the lot of testings.

---

<div class="post-metadata">

**Author:** ![jaxjone](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@jaxjone](https://forum.mautic.org/u/jaxjone)\
**Post date:** [June 7, 2024, 8:04am UTC](https://forum.mautic.org/t/installing-the-firebase-plugin-for-mobile-app-push-notification/19999/3 "2024-06-07T08:04:11Z")

</div>

Installing Firebase for push notifications in your [mobile app development company](https://www.janbaskdigitaldesign.com/mobile-apps-development-company) involves several steps. Below, I’ll guide you through the process for both Android and iOS platforms.

### For Android:

#### Step 1: Set Up Firebase Project

1. **Create a Firebase Project** :

- Go to the Firebase Console.
- Click on “Add Project” and follow the on-screen instructions to create a new project.

1. **Add Your Android App** :

- In the Firebase console, click on “Add app” and select “Android”.
- Enter your app’s package name and other details.
- Download the `google-services.json` file and place it in the `app` directory of your Android project.

#### Step 2: Add Firebase SDK to Your Android Project

1. **Modify Project-level build.gradle** :

gradle

Copy code

```auto
buildscript {
    dependencies {
        // Add this line
        classpath 'com.google.gms:google-services:4.3.3'
    }
}

```

1. **Modify App-level build.gradle** :

gradle

Copy code

```auto
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

dependencies {
    // Add these lines
    implementation 'com.google.firebase:firebase-analytics:17.2.2'
    implementation 'com.google.firebase:firebase-messaging:20.1.0'
}

```

Step 3: Configure Firebase Messaging Service  
**Create a Service to Handle Firebase Messages** :  
public class MyFirebaseMessagingService extends FirebaseMessagingService {  
@Override  
public void onMessageReceived(RemoteMessage remoteMessage) {  
// Handle the received message  
}  
}  
  
  
  
  
  
**Install Firebase SDK via CocoaPods** :

- If you don’t have CocoaPods installed, install it by running:

---

<div class="post-metadata">

**Author:** ![zaharovrd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/zaharovrd/32/7799_2.png) [@zaharovrd](https://forum.mautic.org/u/zaharovrd)\
**Post date:** [December 11, 2024, 8:03am UTC](https://forum.mautic.org/t/installing-the-firebase-plugin-for-mobile-app-push-notification/19999/4 "2024-12-11T08:03:29Z")

</div>

Hi, are you support this plugin? He is worked with mautic 5?
