Thank you a lot ^_^, i had to watch many tutorials but none of them work, your video is great, really simple to understand, thx to you i finally managed to send notifition (had to make a bit more research to make this work with Realtime Database instead of Firestore but thank you nonetheless xD)
Do you intend to teach how to configure the googleplay console and implement real-time developer notifications for in-app purchases? I'm sure it would be an excellent video :)
brilliant video!!! the clearest one i could find on youtube - thank you :) is the source code for this project available anywhere? i've followed this tutorial but some reason its not working for my app, would like to have a look at the source code to try and figure out why
Excellent video sir.. one query.. how do we ensure to get triggered Notifications if one device is not running the internet at a particular time when notification is triggered.. because I found that, that pending notification is skipped for that device
Hello, If the user has connected before - subscribing to a topic or with the registration token, it will be sent to them even when they reconnect to the internet. If they do not receive it, it means that the notification was sent before they have connected to your app.
Great video! Great video! I am making an app that accepts the heart rate by an aduino sensor, and want to have an alarm if the heart rate is too low. Is there a way to send notifications automatically if the sensors value is smaller than a particular value?
@@Codeible Thank you for the feedback! Do I have to add values one by one as shown in the video? I am trying to use the realtime database. I'm also curious if it is possible with AlertDialog.
hi sir, sir it's actually a school web application im converting into an app so when the teacher sends an assignment or any other things the student should get a notification sir ..how can I do that sir..pls help sir
what if I want to push notification to android apps connected to firebase real time db when for example the value of the child element in the database is changed from zero to one or vise versa.
Hello, you can do the same with Firebase Realtime Database. It is similar. Here is the documentation for Realtime DB: firebase.google.com/docs/database/extend-with-functions
@@Codeible Halo, thanks it worked. Could you make function that can take a string from the android search bar and then return a snapshot containing filtered data from firestore db? Because that would really be cool and helpful.
@@Try_tokeepup Hello, you should be able to. You need send the search string to Cloud Functions and then a HTTP Get request. After the Get request returns the data, you can store that info in Firestore.
sir please make a video on how to deploy all these code on server so that they are available for playstor app i am developing a matchmaking system using firestore functions but i don't know where to deploy my javascript code also plzz notify me if i am missing something
Hi there i am currently stuck at Sending Notifications using Topics and Subscriptions part. After I types all the codes, and upload data to firestore, I did not receive any notifications and I checked the log and it showed "Function returned undefined, expected Promise or value". Is there a way to solve this? I made sure all my namings are correct and code are same as yours
Hi thanks for tutorial i create function to send notification when app is enter doze after 1 min from sleep notification not recieved do you know how to fix this
Cloud Functions is a Firebase feature, you will not be able to host it anywhere else. Unless you are using it extensively, you will not need to pay. You just need to be enrolled in the Blaze plan which cost $0 unless you go over the free tier limit.
Hello, if you set the notification to high, it will have sound. If you are doing it on the Emulator, you have to have the emulator focused to hear the sound.
Oh read the message wrong. Just call setSound() from the notification channel object and pass in a sound file. Documentation - developer.android.com/reference/android/app/NotificationChannel#setSound(android.net.Uri,%20android.media.AudioAttributes)
It’s a pity that I can’t make a “deploy” because the firebase spark tariff does not allow using api, you need to switch to a paid tariff: ((is it possible to implement this functionality on my nodejs or bypass the paid firebase tariff ???
Great video, simple to understand. I want to know, how is it possible to deliver the message on the time being sent? (E.g WhatsApp like msg) Instead of delaying for some minutes, and some won’t even deliver to the user.
Hello, yes it is possible. You just need to connect the app with a Database - Firestore, MongoDB, AWS, etc. Once connected, you need to implement a feature/system to receive the message being sent. When the user receives the message, you will display a notification.
Are you using Firestore/Real Time DB to store the registration tokens? You need to make a query to get all the user tokens, 1000 at a time. Example: You will get tokens, sorted by name using startAt() and endAt() modifiers. So first you will start at 1 and end at 1000. Then 1001 to 2000, and so on. You will do this in a while loop and stop when there are no results if you do not know how much records you have.
the only tutorial in internet that works properly. Thanks
The best tutorial of that topic
Замечательно!!! Если следовать официальной документации, то ничего путного не выходит, подписался на канал однозначно
Thank you a lot ^_^, i had to watch many tutorials but none of them work, your video is great, really simple to understand, thx to you i finally managed to send notifition (had to make a bit more research to make this work with Realtime Database instead of Firestore but thank you nonetheless xD)
can you tell me how you manage to do that ? thanks in advance
Do you intend to teach how to configure the googleplay console and implement real-time developer notifications for in-app purchases? I'm sure it would be an excellent video :)
Very helpful video! Thank you so much for sharing it!
It was soo clear and soo helpful , thanks a lot brother
How can we use realtime database paths for triggering the cloud functions instead of firestore ?
Did you discover how?
Thank u soo much!! u saved my time :))
Sir, this video is very helpful and help me a lot, thank you very much. And can you make a video about trigger in realtime database please
Take this flawer🎉
really you are awesome, thanks
brilliant video!!! the clearest one i could find on youtube - thank you :) is the source code for this project available anywhere? i've followed this tutorial but some reason its not working for my app, would like to have a look at the source code to try and figure out why
Hello,
Here is the link to download the project
codeible.com/coursefiles/automatedandroidnotifications
thanks your hands broo :))
Excellent video sir.. one query.. how do we ensure to get triggered Notifications if one device is not running the internet at a particular time when notification is triggered.. because I found that, that pending notification is skipped for that device
Hello,
If the user has connected before - subscribing to a topic or with the registration token, it will be sent to them even when they reconnect to the internet.
If they do not receive it, it means that the notification was sent before they have connected to your app.
@@Codeible Ok. Thanks for your valued feedback..
Great video!
Great video! I am making an app that accepts the heart rate by an aduino sensor, and want to have an alarm if the heart rate is too low. Is there a way to send notifications automatically if the sensors value is smaller than a particular value?
Hi, yes. You just need to push the updated value to Firestore and it will automatically send the notification.
@@Codeible Thank you for the feedback! Do I have to add values one by one as shown in the video? I am trying to use the realtime database. I'm also curious if it is possible with AlertDialog.
@@ohioandy99 Hello, you should not do it manually like the video.
You need to add Firebase to your app and use the API to send data to Firestore.
Instead of firestore can I use Firebase real time database please reply...
hello, why can't I use the deploy function in the vs code terminal? Anyone can help? I'd be really grateful
hi sir, sir it's actually a school web application im converting into an app so when the teacher sends an assignment or any other things the student should get a notification sir ..how can I do that sir..pls help sir
Is the node part really necessary to send messages or can be via firebase website?
what if I want to push notification to android apps connected to firebase real time db when for example the value of the child element in the database is changed from zero to one or vise versa.
Hello, you can do the same with Firebase Realtime Database.
It is similar. Here is the documentation for Realtime DB:
firebase.google.com/docs/database/extend-with-functions
I've deployed successfully six times now but nothing shows up on my functions in the console. Any reason why?
Hello, did you save before you run the command?
@@Codeible Halo, thanks it worked. Could you make function that can take a string from the android search bar and then return a snapshot containing filtered data from firestore db? Because that would really be cool and helpful.
@@Try_tokeepup Hello, you should be able to.
You need send the search string to Cloud Functions and then a HTTP Get request.
After the Get request returns the data, you can store that info in Firestore.
how can i send notify automatically. In your video, i have to deploy js project everytime i want to send notify
You do not need to deploy the js project. How it is automated is when you upload data to Firestore, it will send a notification.
any code snippet for realtime database?
Hello, no.
help me do it with realtime database
sir please make a video on how to deploy all these code on server so that they are available for playstor app
i am developing a matchmaking system using firestore functions but i don't know where to deploy my javascript code
also plzz notify me if i am missing something
Hello, you just need to run the deploy command.
firebase deploy --only functions.
Watch the video starting from 14:45
Hi there i am currently stuck at Sending Notifications using Topics and Subscriptions part. After I types all the codes, and upload data to firestore, I did not receive any notifications and I checked the log and it showed "Function returned undefined, expected Promise or value". Is there a way to solve this? I made sure all my namings are correct and code are same as yours
Usually, that message means that the function crashed due to an error in the code.
@@Codeible thank for the reply, is the error coming from the js code or the android code ? Is it caused by typo ? Because I followed the same steps.
Hi thanks for tutorial i create function to send notification when app is enter doze after 1 min from sleep notification not recieved do you know how to fix this
Hello, by "enter doze," you mean sleep?
@@Codeible yea
How to do it wit realtime database?
Is there any alter option to host the cloud functions on free servers without using firebase so we don't have to pay ?
Cloud Functions is a Firebase feature, you will not be able to host it anywhere else.
Unless you are using it extensively, you will not need to pay.
You just need to be enrolled in the Blaze plan which cost $0 unless you go over the free tier limit.
@@Codeible OK thank you
How to add custom sound notifications?
Hello, if you set the notification to high, it will have sound.
If you are doing it on the Emulator, you have to have the emulator focused to hear the sound.
Oh read the message wrong. Just call setSound() from the notification channel object and pass in a sound file.
Documentation - developer.android.com/reference/android/app/NotificationChannel#setSound(android.net.Uri,%20android.media.AudioAttributes)
So I need to add the code in main activity? I am using webview and Firebase cloud messaging.
It’s a pity that I can’t make a “deploy” because the firebase spark tariff does not allow using api, you need to switch to a paid tariff: ((is it possible to implement this functionality on my nodejs or bypass the paid firebase tariff ???
No.
Enrolling in the Blaze plan do not cost anything if you do not go past 2 million API calls a day.
Great video, simple to understand. I want to know, how is it possible to deliver the message on the time being sent? (E.g WhatsApp like msg) Instead of delaying for some minutes, and some won’t even deliver to the user.
Hello, yes it is possible.
You just need to connect the app with a Database - Firestore, MongoDB, AWS, etc.
Once connected, you need to implement a feature/system to receive the message being sent.
When the user receives the message, you will display a notification.
How to Send multicast message to more then 10000+ users.
Are you using Firestore/Real Time DB to store the registration tokens?
You need to make a query to get all the user tokens, 1000 at a time.
Example:
You will get tokens, sorted by name using startAt() and endAt() modifiers.
So first you will start at 1 and end at 1000.
Then 1001 to 2000, and so on.
You will do this in a while loop and stop when there are no results if you do not know how much records you have.
@@Codeible but firebase support 500 tokens at a time. And cloud function timeout limit is 9 minutes.
@@arshikhan4u Hello, then you can do 500 at a time.
If you have a lot of people, you can do a recursive call to your function.