How to use Firebase In-App Messaging 😍 Lovely feature in your Apps Now

So here we are gonna discussing the latest released( for BETA use) feature of firebase SDK which is Firebase In-App Messaging 💖

As in the above image you can see there are three User Interfaces, we can say Modal Dialog and most right is a type of Banner UI.

You can use this awesome feature in your app as per your requirement, dynamically. Without writing the single line of code,….Cool na 😘

Firebase In-App Messaging is used to grow your app retention,engagement by sending them targeted contextual messages in the form of Modals and Banners form, that encourage them to use key app features.

👉 You can show Images and Text as well as Actions along with it if user clicks on it, then a particular action will happen. Basically, action will be Dynamic Deep Links

Use cases-

  • Show welcome messages on the app_launch event
  • Show a particular notice on the app_update event
  • Show festival,birthday wish card
  • Show discount offers on a particular day
  • Much more possibilities with it…

Uhh…Enough talk, Let’s see the implementation 😒

1. Add dependencies
// ...
// ...

// Add the In-App Messaging depencency:

// Check that your Firebase dependency is up-to-date:

2. Get Firebase Instance ID ( for testing)
Print your firebase instance ID on test mobile with following code
Log.d(“Instance ID”,FirebaseInstanceId.getInstance().getId());

3. Go to In-App Messaging console
Send a message to your testing device
Once you’ve launched your app on the testing device and you have its Instance ID, you can try out Firebase In-App Messaging set up by sending a test message:
  1. In the Firebase console, open In-App Messaging.
  2. Once there, click New Campaign.
  3. Enter a Title for your first message.
  4. Click Test on your Device
  5. Enter your app’s Instance ID in the Add an instance ID field.
  6. Click Test to send the message.
Firebase In-App Messaging sends your test message as soon as you click Test. To see it, close, then reopen the app on your testing device.
Note : If you want to test, there is one problem. You have to get fresh Firebase Instance ID from code and then add it to test device instance ID in the console and after click on Test button, you should kill your app and then REOPEN it to get the result


#HappyCoding 💻
Clap 👏 , Share and follow me if you like it 😉

Posts created 41

3,043 thoughts on “How to use Firebase In-App Messaging 😍 Lovely feature in your Apps Now

  1. [url=]cymbalta tablets price[/url] [url=]diflucan over the counter singapore[/url] [url=]ampicillin 500[/url] [url=]augmentin 625 mg buy online[/url] [url=]can you buy advair over the counter[/url] [url=]buspar online[/url] [url=]elimite price in india[/url]