DZone
Mobile Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Mobile Zone > New Options in #Firebase Notifications

New Options in #Firebase Notifications

The Firebase console now lets your app send notifications to users based on conditions like where they live, or whether they've made app purchases.

Laurence Moroney user avatar by
Laurence Moroney
·
Apr. 12, 17 · Mobile Zone · Opinion
Like (0)
Save
Tweet
3.90K Views

Join the DZone community and get the full member experience.

Join For Free

Firebase Notifications give you a way of sending notifications to users of your app using minimal coding, using the Firebase console.

It’s built on Firebase Cloud Messaging, an infrastructure that handles over a trillion messages a week, with messages being delivered to most connected devices in less than 500ms. In the initial release of Firebase, we allowed you to pick the users for a notification based on Analytics Audience membership, language, or a specific app version.

But now we’ve added a set of enhancements to how you tightly build your set of users to send notifications to — including building them based on analytics segments, user properties, and more. This is important — notifications can be annoying if there are too many, or if they are irrelevant, so accurately targeted ones give a far greater chance of user engagement.

First of all, you can now pick user audiences when you target a user segment in the notifications composers; for example, if I create an audience in analytics and name it — such as an audience of people in Canada, or who speak French Canadian, as a group called Canadians.

Then, in the notifications composer, I can pick the app (if there’s more than one in this project), and specify Canadians as the user audience I want to send notifications to!

You can also stack conditions. So, for example, there’s a property for people who make in-app purchases, so if I only want to send a notification to Canadians who have not made an in-app purchase, I can do that.

Using these combinations, as well as the ability to create multiple audiences and filter on them, you’ll get fine-grained control over which users will receive your notification. In addition to this, you can also filter on user properties. A user property is one that you define that’s specific to your app — for example, if you’re building a fitness app, you might set a user property that is set to true once the user has walked 100 miles using the app.

Then, when composing a notification, you can add this user property. It can also be implemented alongside the others, so, for example, I could build on the previous example — and send a notification to Canadians who have walked more than 100 miles. Or in their case more than 160km. 

There are lots of options for how you would match contents; maybe you want a string that contains a substring, or the opposite — only send to people that don’t match a particular substring.

You can also use regular expressions for maximum granular control. Of course, if your property is numeric, you have all the standard comparators too!

With these tools, you’re equipped to more accurately target your notifications, and hopefully, improve response rates and avoid notification spam!

Firebase app

Published at DZone with permission of Laurence Moroney, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • RestTemplate vs. WebClient
  • How to Build Security for Your SaaS User Communications
  • Which JVM Version Is the Fastest?
  • Five Tips to Fasten Your Skewed Joins in Apache Spark

Comments

Mobile Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo