Can someone help me?
I want to notify all the users who installed my app. I was going to firebase cloud messaging and I am pushing a notification from there. But I want to create a button that collects the information from my textfield and push a notification to all the users.
I have been trying this for 24+ hours but I have found no solution.
Thank you.
Hello I find one solution for this issue
You need to:
Get an server API key from the firebase console.
Create local Api service sent web key as authentication.
Use (User token) to send notification on specific devices. Need to add notification data as raw data will work.
Add web key in authentication
Add notifcation data
Add sender data
Click This link to check detailed solution!
Related
I'm currently working on an android app that can be used by Admin to send sms messages to all users that installed my app. MustPls must I use cloud messaging or I can use my SQLite. But Ii need to use internet for sending the message. Would someone Pls can some one help me with advice or guidelines guidelines to accomplish this task? Thank you all
there is no way to send notification using SQLite. u can use FCM to send notification directly from firebase or generate notification from admin module and receive on user module. you have to use firebase any way.
I am making WebView app for a news website. I need help with setting notifications.
Steps that I have already done:
Set webView app.
Configure for firebase.
Defined basic MyMessageService and MyMessageIdService.
Tested push notification that I sent from Firebase to a device.
My question is: how to set my app to receive notification when new news is posted, or when a comment is made on liked news?
Thanks!
To send notifications on demand you have to do some things first:
collect the firebase tokens of all the devices that are using your
app.
save all these tokens against users or profiles
develop custom app server that will help you to send the
notifications on devices using these firebase tokens.
to develop your app server you can use the code from androidhive.
link to code of app server
for any further query you can ask in comment.
hope this help you.
I am new to Android Development. I am coding one app that using Firebase Cloud Messaging to push notification. I already read document at Firebase Console. But i got a problem. Is there any solution to push notification daily at specific time and the content of message changing based on user device location such as Hello in England, Bonjour in France, Hallo in Germany. Thank you.
You should make and script to do that .
Please go through the link where you can find the necessary script to do that.
you can also send notification to your app via google firebase console.
but you want to send custom message as per the country so you have to make the script with little amendment.
Links to send FCM firebase notifications
I have cloned and ran the github https://github.com/firebase/friendlychat friendly chat project for Android. It is creating chat app between all users but I was expecting to see a notification since they have included FirebaseMessagingService in the code.
AM I expecting to much or I need to change something in code to get notification in my notification bar?
Any direction would be helpful.
Ok I was way off in my question.
So, in order to have one on one notification I had to create php files in my own server. My server code will have FCM key from firebase and when user sends a message, I send a push request from my application to server including receiver's FCM token, it will send a notification to Firebase and Firebase will send notification to the receiver.
Google have firebase functions and somehow you don't need your own server anymore but I am not sure how to implement that.
I am using Google App engine for the database. My idea is that whenever someone, for an instance, signs up for the app - then all users must get a notification that a new member has been added. How can we do this?
For that you should read about GCM. GCM provides a simple way through which you can send notification to your users through your server. You can read about GCM here:
https://developers.google.com/cloud-messaging/