Geo Targeting with firebase Cloud messaging - firebase

How can I send different push to different Countries via Cloud messaging? I searched the official documentation for an answer, but I couldn't find anything. I need this for Android. Thank!

There is no built-in feature to target users by geo in Firebase Cloud Messaging.
The first two options that come to mind are:
Define an audience with Google Analytics for Firebase of users in the region. Then use the Notifications panel in the Firebase console to send a message to that audiebnce.
Subscribe each user to a topic for their region when they start the app, and then send the message to the topic for each region.

Related

Do any features of Firebase Cloud messaging require a Firebase database?

I'm thinking about implementing Firebase Cloud Messaging without implementing a firebase database and it's unclear to me which features of FCM are supported without having a firebase database.
For instance, getting message delivery statistics (https://firebase.google.com/docs/cloud-messaging/understand-delivery) and sending notifications via the firebase console (https://firebase.google.com/docs/cloud-messaging/js/send-with-console). It doesn't explicitly say whether you need a firebase database in either of documents but I'd like to clear about that before implementing it.
So my question is, do you need a firebase database to send notifications via the firebase console or to view message delivery statistics? I know for the latter you need to implement google analytics. And also as a bonus, are there any firebase features that depend on having a firebase database?
Thank you
All FCM features are supported without having to use Realtime Database. They are completely separate products, and are only related as much as you want them to be in your app.

firebase cloud messaging target segments not actived

I want to send notification to some particular segments but some items are disabled.I implemented firebase in unity.
it seems that we should give permission to Share Analytics data with all Firebase features,(project setting>>data privacy)

Does Firebase create a topic when I subscribe to a non existing one?

I started working with Firebase in order to simplify the use of Push Notifications of my app. Searching around the Docs I found the possibility to send a notification to a group of devices through a topic which the devices are subscribed to.
My doubt comes out here. When I subscribe the devices (using firebaseToken) to the topic I want to use, does this topic creates implicitly if it's not created?
If it doesn't, when and how can I create a topic to use it later?
I'm using Firebase Cloud Store an Firebase Messaging.
You don't need to create a topic in order to use topic messaging. It just works the way you expect as long as the server and clients all agree on the name of the topic.
Firebase Cloud Messaging isn't related to Cloud Firestore in any way, other than that they are both Firebase products and are seen together in documentation and the console.

what is difference between Push notification and cloud message?

what is difference between Push notification and cloud message?
is registration id and device id store in third party ?
Push Notification is a notification that appears on a client app, usually like a popup, that is pushed from a server. That's it. Pretty straightforward. You could also check out this searchmobilecomputing link for a good explanation, or even just doing a quick Google search would return you a lot information about Push Notification.
Cloud Message on the other hand is something vague. If you're referring to the Cloud Messaging in Google Cloud Messaging, then I believe you're giving it too much thought. Google Cloud Messaging (now known as Firebase Cloud Messaging) is the name of Google's free push notification service.
For the registration token, I believe Google stores a copy of the tokens on their end, but doesn't keep track of them. It is the developer's responsibility to keep track of the tokens i.e. storing them in a trusted and secure server.

Is it possible to get push notification stats like count of deliveries and opens when sending messages through Firebase notification API?

We are about to switch to Firebase notifiaction API from Parse.com (that are retiring their service in jan 2017) to send push notification to our android and iOS Apps.
My question now is that I can't see any statistics about counts of successful deliveries and opens in the Firebase Console for a specific message ? The only thing we get when posting to https://fcm.googleapis.com/fcm/send is a message_id
{"message_id":123456789}
But I havn't seen any documentation on a api how to follow up a sent message with this message_id. And the Firebase console has only the these kind of stats for messages created in the Console Gui, not the one create through an api post.
These stats was availible in Parse.com. But it seems as Firebase Cloud Messaging is a bit more low level, and perhaps these stats doesn't come out the box, so they might have to be custom made in a logging app etc by sending back events from the apps when messages as received and opened etc. Or is there a standardized way that I've missed when reading the Firebase Notification api docs ?
When you send notifications from the Firebase Notifications console, you get statistics about how many people received and opened the messages. But there is no API (yet) for Firebase Notifications.
If you're using the Firebase Cloud Messaging API (https://fcm.googleapis.com/fcm/send), the message statistics don't show up in the Firebase Notifications console. You can (as AL. says) get delivery statistics in the Google Play Developer Console in that case.
firebase allows you to view sent/delivered/opened statuses by default from their website
http://console.firebase.google.com
at the notification section
but I am not sure about the parse.com implementations
also if you are a new comer to firebase let it collect user data for about 24 hours after successfully migrating to firebase
I found that in the first day the notifications weren't really reporting immediately
I think you're looking for the FCM Diagnostics and Statistics feature.
However, this is not visible in the Firebase Console, only in your Google Play Developer Console. And the feature only works if your app is at least in Alpha Testing.

Resources