Android Notifications with Firebase Cloud Messaging

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

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

  • @Somerandomnessvvv
    @Somerandomnessvvv 3 года назад +11

    explained everything concisely and straight into the point. I'm Kotlin dev but learned so much from this

  • @MdTayoburRahmanGraphics
    @MdTayoburRahmanGraphics 3 года назад +4

    thank you for saved my time

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

    You got me out of a big problem, thank you very much, greetings from Spain

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

    ty bro I've been struggling with this

  • @mjoctavio3730
    @mjoctavio3730 3 года назад +4

    Awesome video, very well presented and the timing is great. I will add a backlink to your video once I completed my Blog. Many thanks and keep it up. New subscriber here 🍻!

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

    Great Explanation and Clear voice

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

    Thank you... You're a life saver man

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

    Thank you so much!!! It was really helpful

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

    So helpful and very well explained! Thanks!

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

    Extreme Knowledge Shared.
    Found Really Helpful.
    Keep Sharing Ahead.

  • @RDB-jl2we
    @RDB-jl2we 2 года назад +1

    you could complete With Custom Click Action! congratulations for the tutorial. I immediately subscribe to the channel because I think your content is interesting

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

    Thank you very much.

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

    Nice explanation thankyou so much 🙏🏼🙏🏼🙏🏼

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

    I am not getting notification when app is open and even onreceive method is not working

  • @trancongtin3250
    @trancongtin3250 3 года назад +2

    OK,tks

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

    thank you

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

    i send 4 notification and still didn't get anything yet HELP :((

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

    clear explaining , but how could we push notification to a specific user programmally

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

    I have app for booking rooms, and I want to send notifications automatically to others admins when I booking one room,
    How I ca do it ,
    It is same with this video

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

    thank you for the video can you make a video how to save the messages on the app

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

    Great Video- How does the Admin SDK work for FCM? I have several teams that need to send Notifications to Android and IOS.. will all these teams be able to individually use the SDK? How can I have them send notifications without going through the Admin console? Thanks

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

    Hi, I'm getting the data "title" & "message" but its not showing

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

    Does it work for devices under Android 12+, seems like we get an error:
    `Topic sync or token retrieval failed on hard failure exceptions: AUTHENTICATION_FAILED. Won't retry the operation.`
    Does anyone know what we can do with this error?
    PS. It works perfectly on devices under Android 11 and less.

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

    can you help me with updated android studio (bumblebee). it's repository not working.

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

    So if u have android firebase cloud messenger on ur phone that means ur phone hacked

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

    I made all the steps but when I send the notification on firebase it says completed but I don't get anything in my phone

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

      Hi, sometimes it takes some time for it to send the first message. Then it is quick after.

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

    It doesn't receive notifications for android 12

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

    There is a way to do it automatically (without clicking manually on the button in the firebase website)?

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

      Hello, yes.
      You can use Cloud Functions.

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

      @@Codeible thank you

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

    Thanks bro.. but pl make a video on TOPIC subscription-based Notification..

    • @Codeible
      @Codeible  3 года назад

      Hello this may be what you are looking for:
      ruclips.net/video/If2eDphtutI/видео.html
      Automated Android Notifications with Firebase Cloud Functions, Messaging, and Firestore

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

      @@Codeible Thanks for Great video on Notification using Topic using Node.js.. Any idea how much it costs for Blaze plan per month if we use it in testing mode.. that is App is not in production mode?. I went through the plan page but got confused..

    • @Codeible
      @Codeible  3 года назад

      @@sat_talk Firebase Blaze is Free until you reach a specific quota.
      If you use it for testing it can cost anywhere from $0 - a few cents (e.g. $0.03) per month depending on how intensive you are using it.
      For this video, if you are using Cloud Functions and Firestore for this purpose, it will not cost anything per month.

  • @Sarfrozkhan
    @Sarfrozkhan 2 месяца назад

    any android devveloper here ?? i have a unique problem . Push notifications shows on emulator but when i create apk and install on mobile then it does not show any notifications . Can anyone help in this one??

    • @Codeible
      @Codeible  2 месяца назад

      Hello, if it is a new implementation, it may take time for it to receive notifications 100% of the time

    • @Sarfrozkhan
      @Sarfrozkhan 2 месяца назад

      @@Codeible yes it's working now but I found out that in foreground it's working. But when app is background it's not receiving any push notification

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

    Can you make a tutorial for the in app messaging?

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

    Hi, I'm encountering an error where I successfully receive the notification on the first time running the app, but after that I can never receive any notifications anymore, and both the app and firebase doesn't show any error and are still running fine. Can you please help explain to me about this?

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

      Hello, can you paste the notification code here? And make sure you added the service in the Manefists file.

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

      @@Codeible I am sure I got the service in manifest file. My notification code is basically a copy of what you shown in the video.

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

    cannot resolve symbol 'ExoPlayerFactory',cannot resolve symbol 'ExtractorMediaSource',cannot resolve symbol 'DefaultHttpDataSourceFactory'
    How can I solve this problem
    Please 🥺 help me 🙏🙏🙏🙏

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

    My dog enjoyed the tutorial, unfortunately the audio frequency wasnt enough for human ears.

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

    I've been searching everywhere and it seems no one is talking about how to this automatically without clicking on send from firebase. Like to send a notification on a condition

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

      Hello, what do you mean on condition.
      I did a video of how to use Cloud Functions to send notifications automatically when you update Firestore.
      ruclips.net/video/If2eDphtutI/видео.html&ab_channel=Codeible

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

    How to use it with realtime database?

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

    Good afternoon, the first part was working perfectly for me but when I code in the override part. I'm getting errors in some parts. Can you help me?

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

      I'm getting cannot resolve symbol, expected symbol and unexpected symbol errors even though I did the same exact code.

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

      Hello, what errors are you getting?

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

    man why everyone is doing a video on sending notification through a console. Please make a video on sending notification through android application. People are not going to ask users to go to firebase console to send notifications.

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

    how can I send notification device to device

    • @Codeible
      @Codeible  3 года назад

      Hello, you'll need to use Firebase Cloud Functions and get the Firebase Cloud Message Registration Token:
      See this documentation:
      firebase.google.com/docs/cloud-messaging/android/first-message
      I will make a video on that soon

    • @IkhlaqMalik
      @IkhlaqMalik 3 года назад

      You should store tokens for every device in some online storage, and then later on use that token to send the notification to any user by that token by some php scripts.

    • @tompan0907
      @tompan0907 3 года назад

      @@Codeible THANKS you are so nice

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

      @@IkhlaqMalik I will try it thanks bro

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

    Why not working with me ;(

  • @raulbonano9073
    @raulbonano9073 3 года назад

    Will this video show notifications in foreground and background ?

  • @hemanharshan
    @hemanharshan 3 года назад

    This notification not paying any sound. How to enable it

    • @Codeible
      @Codeible  3 года назад

      Hello, you need override the default settings for the notification. In the video, it starts from 6:50.
      Set the importance level to IMPORTANCE_HIGH and you will get the sound.

  • @IkhlaqMalik
    @IkhlaqMalik 3 года назад

    What should we do, If we have to display image alsoo

    • @Codeible
      @Codeible  3 года назад

      You can display images by providing an image that is 300 mb or less. You also need to be in the Blaze plan for Firebase.

    • @IkhlaqMalik
      @IkhlaqMalik 3 года назад

      What we need to do basically is, we should specify this filed as well like
      'image' => "some image url" in the php script and the get by using getImageUrl() and converting that URL into bitmap to set the images aswell.😁😁😁

    • @Codeible
      @Codeible  3 года назад

      @@IkhlaqMalik You can, but data may be too large.

    • @IkhlaqMalik
      @IkhlaqMalik 3 года назад

      Yes it can but I have tested this thing, for the images upto 250 kB it works fine

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

    Can i get your project code? thank you so much

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

    will it work if application isn't running in background?

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

    first thank you please i have question i can send app link with msg ???

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

      Hello, what do you mnea?

  • @mohamedagbaria3454
    @mohamedagbaria3454 3 года назад

    if the notification has an image to set it ?

    • @Codeible
      @Codeible  3 года назад

      Are you asking if you can add an image to the notification? If yes, you can.
      To set it in the Cloud Messaging console, there is an option to supply the image.

    • @mohamedagbaria3454
      @mohamedagbaria3454 3 года назад

      @@Codeible yes i know .
      My notification hsa an image i ask how to set the image.
      Like as set title ,set body .
      Thank you

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

      @@mohamedagbaria3454 Hello,
      You need to use
      .setStyle(new NotificationCompat.BigPictureStyle()
      .bigPicture(myBitmap)
      .bigLargeIcon(null))

    • @mohamedagbaria3454
      @mohamedagbaria3454 3 года назад

      @@Codeible you know how to get the image bitmap ?

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

    Please HELP me sir🥺 An unexpected error has occurred" after firebase deploy

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

      Hi, where is the error occurring?

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

      @@Codeible when I enter SHA-1 IT SHOWS An unexpected error has occurred" after firebase deploy

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

      How to generate new SHA-1

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

      @@Codeible ruclips.net/video/aJmKA3XiVxM/видео.html
      In this video they explained but I don't know where is freekey.jks located🥺🥺

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

      @@starttoday1522 You mean when you create the app on Firebase?

  • @yunuskayacan5766
    @yunuskayacan5766 3 года назад

    Does it work when app is killed also?

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

    does this even when app is killed?

  • @isaquecrazy
    @isaquecrazy 3 года назад

    my service is not working `-