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
Related
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!
The Firebase Console allows us to send notifications to single users, groups, users subscribed to topics or to the entire user base. Is there any code that allows us to directly send notifications in the same way, but programmatically?
For example, if I had a list of users (containing their Firebase UIDs), if I click on one of the users, could I send a notification to that user through Firebase the same way the console allows us to send a notification through the console?
This Firebase Blog uses the Google App Engine Flexible Environment to actually send the notifications, but it requires a free trial and costs money.
This Quickstart doesn't really show how to send user to user notifications. It focuses on the subscription-based notifications, but this isn't really what I need.
Is there any good way of doing this with Java/Kotlin and the Firebase API?
FCM doesn't support you sending message directly from Android app to Android app. However, this is a workaround to solve your problem:
Create a firebase cloud function. Listen a special path in firebase database
Android app 1 push a data (maybe Android app 2 ID) to this path
Firebase cloud function process data, determine who to send notification (Android app 2).
Firebase cloud function push notification to Android app 2.
ref: https://firebase.google.com/docs/functions/use-cases#notify_users_when_something_interesting_happens
In a basic concept: we write our server to get action from firebase database and decision to send notification to other user by FCM. This our server can write with NodeJS or using Firebase Cloud Function (above)
Guide how to using Nodejs is here: https://firebase.googleblog.com/2016/08/sending-notifications-between-android.html
I am looking to create an Android app that uses a MySQL database located on a server. When certain changes are made to this database, I'd like a push notification to be sent to some app users. My question is, is the Google Cloud Messaging Service required to implement this? This page http://developer.android.com/google/gcm/index.html seems to suggest that using the Google Developers Console is also required. If so, is it possible to export this project into Eclipse? Thanks in advance.
My question is, is the Google Cloud Messaging Service required to implement this?
Yes and no, if you want to do real push messages then yes it is required however if you dont want to use GCM you can use XMPP to send messages to devices
Push notification can be generated using alarm in android.See this.
But here you are looking to send push notification after certain changes in your database which is located in your server,for that GCM will be a better option.You can find an excellent tutorial of GCM here.
I'm a total newbie in Android programming and I was wondering if it's possible to push a message or notification to my app from a server or computer and displays the message through a toast or an Alert Dialogue?
Yes you can start with Google Cloud Messaging for Android
For more info see http://developer.android.com/google/gcm/index.html
and may start with these tutorial
Using PHP and MySQL
Android Push Notifications using Google Cloud Messaging (GCM), PHP and MySQL
and using asp.net
Google Cloud Messaging for Android.
Push Messages to GCM server using visual c#.net application (server side).
You can also use a free service like www.AskingPoint.com (full disclosure in the Founder) to send Push or In-App Messages to your Apps. The Advantage of something like AskingPoint is that you can more easily target users using rules and also quickly and easily localize the message into other languages. Hope that helps. Our Android SDK Beta will be out next week.
I'm making an app for android and I wanted it to be able to receive a notification when ever a website changes it's content.
I'm fairly new to app development and have no idea where to start. Any help would be appreciated.
Thanks
First of all you must register your users with your website with a unique key. for e.g. GCM(Google cloud messaging registers user when the start the app.)
For detailed information about GCM go through this link
Note: GCM is free to use.
Then if Your website gets updated you must send a push notification to all registered users and in your mobile application you must register a broadcast receiver to receive that notification and display in your desired UI.
If you don't own the websites:
I think you would need a program (in your server or computer) querying the websites that you care about and comparing their HTTP info for update date. And if you see any updates, send notifications from your server to the app (using Google Cloud Messaging).
Other methods for knowing the last time it was modified: check last time website updated
If you do own the websites:
you could use Google Cloud Messaging every time you update to push a notification from the server.
And here they talk about it and even list some tutorials : GCM in stack overflow
Vogella's tutorial : link