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

Поделиться
HTML-код
  • Опубликовано: 5 авг 2024

Комментарии • 64

  • @Alex-xu5lu
    @Alex-xu5lu 2 года назад +1

    the only tutorial in internet that works properly. Thanks

  • @RodrigoGTomaz
    @RodrigoGTomaz 3 года назад +1

    Very helpful video! Thank you so much for sharing it!

  • @sasha493
    @sasha493 9 месяцев назад

    The best tutorial of that topic

  • @immersivevr3605
    @immersivevr3605 2 года назад

    It was soo clear and soo helpful , thanks a lot brother

  • @cadhearn
    @cadhearn 2 года назад +2

    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

  • @user-cq4yd7mi1b
    @user-cq4yd7mi1b 2 года назад

    really you are awesome, thanks

  • @ghzcoding
    @ghzcoding 8 месяцев назад

    Thank u soo much!! u saved my time :))

  • @fabricioronison
    @fabricioronison 2 года назад +5

    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 :)

  • @rootwww
    @rootwww 2 года назад +2

    Замечательно!!! Если следовать официальной документации, то ничего путного не выходит, подписался на канал однозначно

  • @BenyaminReda
    @BenyaminReda Год назад

    Take this flawer🎉

  • @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

  • @canerylmaz577
    @canerylmaz577 2 года назад +1

    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

  • @muskarlaamanita6478
    @muskarlaamanita6478 2 года назад

    Is the node part really necessary to send messages or can be via firebase website?

  • @madhav3444
    @madhav3444 2 года назад +7

    How can we use realtime database paths for triggering the cloud functions instead of firestore ?

    • @lizkeen579
      @lizkeen579 8 месяцев назад

      Did you discover how?

  • @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

  • @waleefalrooh8
    @waleefalrooh8 2 года назад

    How to do it wit realtime database?

  • @Rohan_is_discovering
    @Rohan_is_discovering 4 месяца назад

    Instead of firestore can I use Firebase real time database please reply...

  • @rneqan9610
    @rneqan9610 3 года назад +5

    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 года назад +1

      Hello,
      Here is the link to download the project
      codeible.com/coursefiles/automatedandroidnotifications

  • @user-cq4yd7mi1b
    @user-cq4yd7mi1b 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

  • @kevinwong7608
    @kevinwong7608 Год назад

    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  Год назад

      Usually, that message means that the function crashed due to an error in the code.

    • @kevinwong7608
      @kevinwong7608 Год назад

      @@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.

  • @sat_talk
    @sat_talk 3 года назад +1

    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..

  • @rootwww
    @rootwww 2 года назад +1

    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.

  • @ohioandy99
    @ohioandy99 Год назад +1

    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  Год назад

      Hi, yes. You just need to push the updated value to Firestore and it will automatically send the notification.

    • @ohioandy99
      @ohioandy99 Год назад

      @@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  Год назад

      @@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.

  • @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

  • @ibrahimelmansouri9434
    @ibrahimelmansouri9434 2 года назад

    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

  • @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.

  • @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 года назад +1

      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.

  • @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.

  • @nagillbeats
    @nagillbeats 2 года назад

    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  2 года назад

      Hello, you just need to run the deploy command.
      firebase deploy --only functions.
      Watch the video starting from 14:45

  • @jayshah1976
    @jayshah1976 2 года назад +1

    any code snippet for realtime database?

    • @Codeible
      @Codeible  2 года назад +1

      Hello, no.

    • @lawyer10x
      @lawyer10x 2 года назад

      help me do it with realtime database

  • @debduttomajumdar9661
    @debduttomajumdar9661 2 года назад

    How to add custom sound notifications?

    • @Codeible
      @Codeible  2 года назад +1

      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 года назад +1

      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.