This question already has answers here:
How to send one to one message using Firebase Messaging
(5 answers)
Closed 1 year ago.
I'm building a photo app where users can press like. Assume there is a user A and B. I need to show a notification when user A press like to user B. User B (app can be either in background or terminated) must get a push notification something like "Hey you got a like".
is it a good idea to use fcm in this situation?
if so how to accomplish these?
Referred links:
Restrict FCM Notification for a specific users in Flutter
https://firebase.flutter.dev/docs/messaging/usage
3
This is possible with firebase push notifications.
But its not possible to trigger this from client-side. You could accomplish this with a cloud function...
Related
This question already has answers here:
How to send device to device messages using Firebase Cloud Messaging?
(14 answers)
Firebase push notification device to device
(1 answer)
How to send one to one message using Firebase Messaging
(5 answers)
Closed 8 months ago.
I'm developing an app in react native using firebase and I can't find if it is possible to send notification TO firebase.
More precisely, I want to send some kind of notification request to firebase so Firebase send notifications to devices.
Does anyone know how to do it?
You're probably looking for Cloud Messaging.
What you'll need:
A server to use FCM admin SDK (you can use Firebase Cloud Functions as well)
The device's FCM token that you want to send the notification to
Also take a look to In-App messaging.
This question already has answers here:
Firebase Cloud Messaging - Send message to all users
(2 answers)
Closed 3 years ago.
I am trying to send a push notification to all users in my firebase app.
is there a way to do it without using a topic?
I have tried doing the following request:
{
"to":"/topics/all",
"data":{
"message" :" {My message}"
}
}
Any help is appreciated!
If you absolutely can't use a topic, then you will need to collect all the device ID tokens from all your users' app installations, then send the message directly to all those tokens. But I suspect it will be easier to user a topic instead of writing all that code.
This question already has answers here:
FCM Notification Delivery Report
(2 answers)
Closed 4 years ago.
Is there a way to know if a Firebase push notification has been successfully delivered to a user's mobile device? If this is not possible via Firebase out of the box, is there any workaround for this?
There is no built-in delivery receipt. If you want such a thing, you can build it yourself though:
Send only data messages, so that all messages are delivered to your application code.
Send a delivery receipt from your code back to your server, e.g. writing it into a Firebase database.
This question already has answers here:
How can I know that a Firebase Cloud Messaging token is out of use?
(2 answers)
Closed 4 years ago.
Is there a way to inform server about bounced push notifications, so I can remove remove device tokens and reduce number of push notifications that server send.
If by bounced you mean the device intentionally rejected the notification, then no. There is currently no feature like that in FCM.
If what you mean is to identify if the token is no longer valid, then you just have to look out for NotRegistered errors.
This question already has answers here:
Cloud Functions for Firebase trigger on time?
(3 answers)
Closed 5 years ago.
I would like to use Firebase to send reminder messages to a user device, e.g. a push notification (or email) at 3 PM.
Does Firebase come with a build in option for such a use case?
you can use firebase-could-function to send the notifications to users , and then setup cron job to trigger your function at the time you want with the period you want