This question already has answers here:
How to send Device to device notification by using FCM without using XMPP or any other script.?
(3 answers)
Closed 5 years ago.
I want so send push notification directly using firebase. I don't wanna use any server!
Is it possible? To send Firebase push notification Android to Android Directly using FirebasePlease Help!
sir firebase is also a server so if you want to send notificaion to every user device or individual device use firebase or use another services like php
without server is not possible
Related
This question already has answers here:
How to send one to one message using Firebase Messaging
(5 answers)
How to send Device to device notification by using FCM without using XMPP or any other script.?
(3 answers)
How to send device to device messages using Firebase Cloud Messaging?
(14 answers)
Closed 2 years ago.
I want to implement functionality so that when I click 'Poke' on a person's profile on my App, he/she should get a notification that there is a poke. This should work both in foreground, or when the app is closed. Nothing else is needed. No extra data needs to be passed. Just a simple notification saying that there is a poke.
This question already has answers here:
How to send device to device messages using Firebase Cloud Messaging?
(14 answers)
Closed 4 years ago.
How do I send notification from an android device to another device through firebase cloud messaging?
I do not want to use the administrative panel of firebase for sending notifications, I just want to send from one device to the other.
FCM doesn't provide device to device communication, you will have to achieve through App Server or use FCM endpoint to send messages.
Do you have App Server implemented? which sends notification through FCM.
Approach 1:
If App Server is there then you can follow: https://firebase.google.com/docs/cloud-messaging/android/upstream and add logic in App Server to send notification.
Approach 2:
You could use Firebase Remote Config to share FCM server keys, and make Http request from android client.
This question already has answers here:
How to send Device to device notification by using FCM without using XMPP or any other script.?
(3 answers)
Closed 5 years ago.
Is there a way to send push notification between 2 android devices without a server?
I found some tutorials but all of them was using the node.js for sending a notification. (Or I found that some samples that were using the firebase console for doing this)
Nope,
You need a "server" to do push notification. You can use a variety of services to do that, as you mentioned firebase is one of them. You may not need a full on server, but you need some kind of service to do that, you can't simply send notifications between devices straight away:
Some examples are:
AWS Serverless functions
Cloud functions in firebase
If you'd rather use one of these services, then you'll need to configure FCM in your app, you can check how to do that in the docs. And some nice sample codes here :)
This question already has answers here:
Is it possible to send PushNotifications, using Firebase Cloud Messaging (FCM) to special UDID, directly from device?
(6 answers)
Closed 6 years ago.
I need the android code for firebase that will send a notification when a user sends a message from one android phone.
eg: When I use Whats App for example if User A sends a message to User B, then a notification is sent to user B device when User B clicks on it, the page opens. How to do this via only firebase and no other server, I have searched all the Firebasse docs... In the notification only Server to device is given.. I am making a chat app and only this feature is remaining.
You can try this code and customize as per your need... i also used this code to customize my chatting application
You have to add notification code inside the following method in Chat.java class
FirebaseDatabase.getInstance().getReference("messages").addListenerForSingleValueEvent();
...And if you want to receive notifications when your app is not running or close like whatsapp. You have to create an android service for notification that will run continuously in the background.
This question already has answers here:
How to send device to device messages using Firebase Cloud Messaging?
(14 answers)
Closed 6 years ago.
I am developing a chat app using firebase real-time database. I am able to exchange messages but i want to have a message alert notification for new messages.
Sending notifications using firebase console is working but now i want to automate it without firebase console.
Do i need to create my own app server for push notification between android clients? Or is there another way to achieve this instead of creating a server?
Thank you
Firebase realtime database is very useful precisely for its "realtime" aspect.
You could create a Service that listens for changes in the database and create a Notification whenever the client receives a new message.