Automated Android Notifications with Firebase Cloud Functions, Messaging, and Firestore

  Рет қаралды 36,492

Codeible

Codeible

Күн бұрын

Пікірлер: 64
@Alex-xu5lu
@Alex-xu5lu 2 жыл бұрын
the only tutorial in internet that works properly. Thanks
@fabricioronison
@fabricioronison 2 жыл бұрын
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 :)
@sasha493
@sasha493 Жыл бұрын
The best tutorial of that topic
@cadhearn
@cadhearn 3 жыл бұрын
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)
@ajiperdana2639
@ajiperdana2639 2 жыл бұрын
can you tell me how you manage to do that ? thanks in advance
@RodrigoGTomaz
@RodrigoGTomaz 3 жыл бұрын
Very helpful video! Thank you so much for sharing it!
@madhav3444
@madhav3444 2 жыл бұрын
How can we use realtime database paths for triggering the cloud functions instead of firestore ?
@lizkeen579
@lizkeen579 10 ай бұрын
Did you discover how?
@rootwww
@rootwww 2 жыл бұрын
Замечательно!!! Если следовать официальной документации, то ничего путного не выходит, подписался на канал однозначно
@immersivevr3605
@immersivevr3605 2 жыл бұрын
It was soo clear and soo helpful , thanks a lot brother
@rneqan9610
@rneqan9610 3 жыл бұрын
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
@Codeible
@Codeible 3 жыл бұрын
Hello, Here is the link to download the project codeible.com/coursefiles/automatedandroidnotifications
@ghzcoding
@ghzcoding 10 ай бұрын
Thank u soo much!! u saved my time :))
@tuannguyenhoanganh6982
@tuannguyenhoanganh6982 2 жыл бұрын
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
@Rohan_is_discovering
@Rohan_is_discovering 7 ай бұрын
Instead of firestore can I use Firebase real time database please reply...
@sat_talk
@sat_talk 3 жыл бұрын
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
@Codeible
@Codeible 3 жыл бұрын
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.
@sat_talk
@sat_talk 3 жыл бұрын
@@Codeible Ok. Thanks for your valued feedback..
@ohioandy99
@ohioandy99 2 жыл бұрын
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
@Codeible 2 жыл бұрын
Hi, yes. You just need to push the updated value to Firestore and it will automatically send the notification.
@ohioandy99
@ohioandy99 2 жыл бұрын
@@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.
@Codeible
@Codeible 2 жыл бұрын
@@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.
@إيلافتكنلوجي
@إيلافتكنلوجي 2 жыл бұрын
really you are awesome, thanks
@BenyaminReda
@BenyaminReda Жыл бұрын
Take this flawer🎉
@johnsunnyjohnsunny4296
@johnsunnyjohnsunny4296 2 жыл бұрын
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
@muskarlaamanita6478
@muskarlaamanita6478 3 жыл бұрын
Is the node part really necessary to send messages or can be via firebase website?
@canerylmaz577
@canerylmaz577 2 жыл бұрын
thanks your hands broo :))
@dw12349
@dw12349 2 жыл бұрын
hello, why can't I use the deploy function in the vs code terminal? Anyone can help? I'd be really grateful
@TuanNguyen-vg8wh
@TuanNguyen-vg8wh Жыл бұрын
how can i send notify automatically. In your video, i have to deploy js project everytime i want to send notify
@Codeible
@Codeible Жыл бұрын
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.
@rootwww
@rootwww 2 жыл бұрын
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 ???
@Codeible
@Codeible 2 жыл бұрын
No. Enrolling in the Blaze plan do not cost anything if you do not go past 2 million API calls a day.
@jayshah1976
@jayshah1976 3 жыл бұрын
any code snippet for realtime database?
@Codeible
@Codeible 3 жыл бұрын
Hello, no.
@lawyer10x
@lawyer10x 2 жыл бұрын
help me do it with realtime database
@إيلافتكنلوجي
@إيلافتكنلوجي 2 жыл бұрын
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.
@Codeible
@Codeible 2 жыл бұрын
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
@ibrahimelmansouri9434
@ibrahimelmansouri9434 3 жыл бұрын
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
@Codeible
@Codeible 3 жыл бұрын
Hello, by "enter doze," you mean sleep?
@ibrahimelmansouri9434
@ibrahimelmansouri9434 3 жыл бұрын
@@Codeible yea
@Try_tokeepup
@Try_tokeepup 2 жыл бұрын
I've deployed successfully six times now but nothing shows up on my functions in the console. Any reason why?
@Codeible
@Codeible 2 жыл бұрын
Hello, did you save before you run the command?
@Try_tokeepup
@Try_tokeepup 2 жыл бұрын
@@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.
@Codeible
@Codeible 2 жыл бұрын
@@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.
@nagillbeats
@nagillbeats 3 жыл бұрын
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
@Codeible
@Codeible 3 жыл бұрын
Hello, you just need to run the deploy command. firebase deploy --only functions. Watch the video starting from 14:45
@kevinwong7608
@kevinwong7608 2 жыл бұрын
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
@Codeible
@Codeible 2 жыл бұрын
Usually, that message means that the function crashed due to an error in the code.
@kevinwong7608
@kevinwong7608 2 жыл бұрын
@@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.
@madhav3444
@madhav3444 2 жыл бұрын
Is there any alter option to host the cloud functions on free servers without using firebase so we don't have to pay ?
@Codeible
@Codeible 2 жыл бұрын
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.
@madhav3444
@madhav3444 2 жыл бұрын
@@Codeible OK thank you
@coding1806
@coding1806 3 жыл бұрын
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.
@Codeible
@Codeible 3 жыл бұрын
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.
@waleefalrooh8
@waleefalrooh8 2 жыл бұрын
How to do it wit realtime database?
@debduttomajumdar9661
@debduttomajumdar9661 2 жыл бұрын
How to add custom sound notifications?
@Codeible
@Codeible 2 жыл бұрын
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.
@Codeible
@Codeible 2 жыл бұрын
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)
@debduttomajumdar9661
@debduttomajumdar9661 2 жыл бұрын
So I need to add the code in main activity? I am using webview and Firebase cloud messaging.
@arshikhan4u
@arshikhan4u 2 жыл бұрын
How to Send multicast message to more then 10000+ users.
@Codeible
@Codeible 2 жыл бұрын
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.
@arshikhan4u
@arshikhan4u 2 жыл бұрын
@@Codeible but firebase support 500 tokens at a time. And cloud function timeout limit is 9 minutes.
@Codeible
@Codeible 2 жыл бұрын
@@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.
Советы по уведомлениям в Android
25:15
Android Broadcast. Все об Андроид разработке
Рет қаралды 9 М.
Engage users with Firebase Cloud Messaging
25:33
Firebase
Рет қаралды 23 М.
Зу-зу Күлпаш 2. Интернет мошенник
40:13
ASTANATV Movie
Рет қаралды 582 М.
А что бы ты сделал? @LimbLossBoss
00:17
История одного вокалиста
Рет қаралды 8 МЛН
Сюрприз для Златы на день рождения
00:10
Victoria Portfolio
Рет қаралды 1,7 МЛН
📱Android Push Notifications • Flutter x Firebase Tutorial
12:39
100 Firebase Tips, Tricks, and Screw-ups
24:31
Fireship
Рет қаралды 189 М.
How do Cloud Functions work? | Get to know Cloud Firestore #11
18:21