Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to send firebase notifications to audience via HTTP

In Firebase Console I set up audiences based on various user properties and now am able to send notifications to different user segments via console. Is there a way to do the same by http requests to fcm servers? There should be a trick with "to" field, but I couldn't figure it out.

like image 589
Viktor Ivanov Avatar asked Jun 23 '16 15:06

Viktor Ivanov


People also ask

Can you send push notifications with Firebase?

Firebase Cloud Messaging (FCM) provides a reliable and battery-efficient connection between your server and devices that allows you to deliver and receive messages and notifications on iOS, Android, and the web at no cost.

Can I send push notifications without FCM?

It's definitely possible -- you don't have to use Firebase to deliver push notifications. You can roll out your own notification solution or consider a paid product such as Pushy (pushy.me) which does not rely on Firebase Cloud Messaging. Full disclosure - I am the Founder & CEO at Pushy.


2 Answers

firebaser here

There is currently no way to send a notification to a user segment programmatically. It can only be done from the Firebase Console as you've found.

We're aware that allowing this through an API would expand the potential for Firebase Notifications a lot. So we're considering adding it to the API. But as usual: no commitment and no timelines, since those tend to change as priorities shift.

like image 174
Frank van Puffelen Avatar answered Jan 01 '23 17:01

Frank van Puffelen


This has been a popular request, but unfortunately it is not yet possible. We are looking into this. Please check Firebase Cloud Messaging announcements for any updates in the future.

like image 25
Tingmui Li Avatar answered Jan 01 '23 17:01

Tingmui Li