Firebase notifications conversions - android

I am just starting using Firebase in my Android App. I can receive perfectly a notification from Firebase console on my device, that's amazing.
My question to you is, in the firebase console when you see the messages sent in Notifications, when I open a sample notification, I can not see the people who i sent the notifiacion, opened the notifaction, the conversions that i have.
Am I missing something? Should I implement anything to response to server with device-id?
Thanks.

Notification events stats are found in the Analytics tab. Firebase automatically logs some events for you - see list here.

You are not missing anything, it's just that the information about sent, open and conversions events it's not in realtime . Indeed it will take few hours for that information to be computed and presented in the console.

Related

Firebase Cloud Messaging topic is ignored, all users keep getting the notification

TL;DR
I subscribed to a FCM topic, then unsubscribed to it, and my test device keeps receiving the notifications targetting this topic
Some details
From my testing app, I called FirebaseMessaging.getInstance().subscribeToTopic("beta") to subscribe to a topic called "beta", and after a few hours I found it in the Firebase Console. So far so good.
After that, I unsubscribed to that topic (by calling the unsubscribeToTopic() method), and the callback was called with a success. To be sure, I also checked that the unsubscription was saved by calling this url with the appropriate token and Authorization header :
https://iid.googleapis.com/iid/info/{MY_TOKEN}?details=true
As a result, I didn't got any topic in the json response. So... So far so good !
Then, in the Firebase Console, I created a new notification specifying this "beta" (see screenshot below) and clicked on the "Send test message" button (specifying my test device token).
My problem is : I keep receiving this test notification on my test device while I previously unsubscribed to that topic !
What am I doing wrong, any ideas ?
I also tried to target an unexisting topic in the Firebase Console, and I still receive the notification in my test app.
OK, found out what's happening : The test button doesn't take the topic in consideration. So the solution is simple : just publish the notification and try in real life, it will work !

Disable firebase cloud messaging from going to tray via Cloud Messaging

I've researched this topic for a little while, but I can't seem to get it. Apparently Google hasn't made an UI for this is what I understand. So here's the question.
I like to send cloud messages to my app users (100k+) occasionally. The users have an option to turn these notifications off which works fine if the app is in foreground.
But for background, Firebase does not give me any way of handling this. The message will always go to the tray even a user has disabled it inside the app. Understandably the notification never makes it to the app.
I've read responses from people that we should send such messages directly from our own servers. Yes, I've got my own servers and I do send a lot of messages to my users directly from the server. I maintain a database of all fcm codes.
But I'm wondering if there's a way of achieving this through the firebase console. It's nice to have all messages in once place e.g. ios and android. Google will also show us statistics which are also important in analysing which notifications are working better.
I've seen a possible answer here, How can I disable firebase notification on android client app, but it looks very unconventional.
Any help would be appreciated.
to disable notifications just must add
FirebaseMessaging.getInstance (). UnsubscribeFromTopic ("Topic_Name");
Note: these must be previously subscribed to the Topic
to enable notifications again use this
FirebaseMessaging.getInstance (). SubscribeToTopic ("Topic_Name");

Topic messaging android firebase dosent work

I tried using
FirebaseMessaging.getInstance().subscribeToTopic("news");
but it's been 1 day and half since i used this code line and still nothing shows up.
any suggustions?
I have read this but nothing helped:
Android: Subscribe to Firebase Cloud Messaging(FCM) Topic
edit: my problem is that the topic i created doesnt show in my firebase notification console.
I've used topic based FCM in an app before and I actually had to send a message to the topic to which I was subscribing to get it to show up in the Firebase Cloud Messaging console. You could use curl or a chrome plugin such as ARC to send a message on that topic.

Send push message to an entire application instead of a list of devices

Is there a way to send a message to an entire application instead of a list of devices / topic outside the Firebase console?
Inside the console you can accomplish this like so:
But if I'm using their API, I can't find a way to send the message to the app.
I have found a workaround (subscribing every app to the same topic) that works perfectly, but I would prefer the app option.
Once you subscribe users of your app to a topic, every user gets the message sent to that topic.
You can't send message to the entire users of your app with API without a topic. It only works in Firebase Console. See this explanation: FCM (Firebase Cloud Messaging) how to send to all Phones?

Get list of Firebase notifications?

Is there a way to see all the notifications sent via Firebase?
I can't find anything in the docs or anywhere else.
It'd be cool if it is possible over the console, but HTTP would do as well! Any ideas?
Unfortunately, there is no available API as of the moment to retrieve your GCM/FCM logs. However, there's been a recent improvement in the Firebase Notifications console where stats (sent count only for now) for messages sent using the FCM API is included in the Firebase Notification console stats. From my answer in the similar post:
As of August 2018, stats for messages sent using the FCM API are now visible from the console. From the Cloud Messaging section, click on the Reports tab. From there, you will be able to filter by message type (notification, data, and all)
It would seem that the Impressions and Opens are still only available for messages sent using the console. But Sends for sure now counts the messages sent using the FCM API.
Reference: https://firebase.googleblog.com/2018/08/in-app-messaging-crashlytics.html
As you might already know, only notifications sent via the console are visible in the Firebase Console itself. In the left-side panel, just select on the Notifications and you will see the list of Notifications sent using the console.
One approach is also to make use of the Google Play Developer Console, but the app should at least be in Alpha Testing.
Kinda similar posts:
Firebase Cloud Messaging Statistics API
Firebase notification records/log API

Categories

Resources