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.
Related
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");
I want to do FCM in Xamarin.Android.
So I following this tutorial (Xamarin.Android)Remote Notifications with Firebase Cloud Messaging to do.
but my phone can't receive message.
my output get :
[FirebaseMessaging] Unable to log event: analytics library is missing
I had add two NuGet:
Xamarin.GooglePlayServices.Base.
Xamarin.Firebase.Messaging.
I tried this Xamarin.Android
Updating Xamarin.Build.Download to 0.4.11
but it's still not working...
What can I do ?
I am at the same step and faced the same situation, until I read forward and found this:
On the Android device (or emulator), background the app by tapping the Android Overview button and touching the home screen. When the device is ready, click SEND MESSAGE in the Firebase Console:
By doing it that way the message can be seen at the notification bar:
I am new to this but I am realizing that the purpose of this first test is to receive the message when the app is not in the foreground... See also: Send Message paragraph in the Remote Notifications with Firebase Cloud Messaging tutorial.
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?
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
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.