Android Push Notification Using Firebase Cloud Messaging in Kotlin | GeeksforGeeks

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024
  • In this video, we're going to create a simple Android Application with the functionality of Push Notification using Firebase Cloud Messaging in Kotlin. The Firebase Cloud Messaging (FCM) is a real-time solution for sending notifications to client apps without any kind of charge. FCM can reliably transfer notifications of up to 4Kb of payload. In this project, we'll get to see how this service can be availed. So, let's get started now.
    Check Out the Related Articles:
    Push Notification in Android using Firebase Cloud Messaging [www.geeksforge...]
    Complete Android Tutorial [www.geeksforge...]
    Apply For Video Internship Program - script.geeksfo...
    Our courses: practice.geeks...
    This video is contributed by Abhay Maurya.
    Please Like, Comment, and Share the Video with your friends.
    #android ​#project #firebase #kotlin #appdevelopment #fcm
    Install our Android App:
    play.google.co...
    If you wish, translate into the local language and help us reach millions of other geeks:
    www.youtube.com...
    Follow us on our Social Media Handles -
    Twitter- / geeksforgeeks
    LinkedIn- / geeksforgeeks
    Facebook- / geeksforgeeks.org
    Instagram- www.instagram....
    Reddit- / geeksforgeeks
    Telegram- t.me/s/geeksfo...
    Also, Subscribe if you haven't already! :)

ความคิดเห็น • 52

  • @MaricelaPotoc
    @MaricelaPotoc 3 ปีที่แล้ว +8

    A very good video. Helped me a lot after days of searching. I am trying to build my first app and I had no idea that I could use Firebase to create notifications.

    • @nerdsplus5499
      @nerdsplus5499 2 ปีที่แล้ว

      how to make notification work with all versions of mobiles?

  • @muhannddh
    @muhannddh 2 ปีที่แล้ว +9

    why there is no GitHub for the source Code ?

  • @gioacchinogarofalo2403
    @gioacchinogarofalo2403 2 หลายเดือนก่อน

    Hi,
    first of all I would like to thank you for the clarity of your videos.
    I made an app based on your video about the chat and I would like to integrate it with the current notification. Unfortunately for me, however, you start the notification from firebase and instead I am interested in having the notification arrive when a user sends a message to the recipient and then reply to the message. Have you already done something like this? Can you give me a hand please?

  • @cemilbasar9781
    @cemilbasar9781 ปีที่แล้ว

    wonderful video greetings from Istanbul/Türkiye

  • @gxvigo
    @gxvigo 2 ปีที่แล้ว +1

    Awesome tutorial, I never used Android Studio and at the end of your video I got a notification on my device. Question, how to I get the Device Token so I can send push notifications from systems other than Firebase Test Messages?

  • @sksuman4400
    @sksuman4400 2 ปีที่แล้ว +10

    it's regarding android push notifications.
    It's working fine for the Android version lower than oreo(API level 26 ). But above oreo (API level 26 ), the push notifications are not coming when the app is closed.

  • @vahidvahidi4203
    @vahidvahidi4203 ปีที่แล้ว

    One of the best videos. very good. I have test it works successfully.

  • @Azil7136
    @Azil7136 2 ปีที่แล้ว +2

    he can only run on emulator dan notification can't when I try it directly on the device?. wyh is that ?

  • @maurocos9118
    @maurocos9118 2 ปีที่แล้ว

    You are the Best, Sir. Thank you very much

  • @axw-ei3fn
    @axw-ei3fn 2 ปีที่แล้ว

    Thanks, bro this wonderful video. I understand very much.

  • @Kaito-rt4ux
    @Kaito-rt4ux 10 หลายเดือนก่อน

    Is there a way to send a fixed notification automatically when there is a changed in realtime database of firebase without using fcm? or notification console?

  • @osamaghazal
    @osamaghazal ปีที่แล้ว

    you are great man
    Thank you very much

  • @andonisgaja7379
    @andonisgaja7379 8 หลายเดือนก่อน +1

    Not working at all :(

  • @christiancasanova4176
    @christiancasanova4176 ปีที่แล้ว +5

    doesn't work anymore

  • @mdarifnufqqdugir3278
    @mdarifnufqqdugir3278 3 ปีที่แล้ว +3

    Please start making apps using flutter we all want to learn flutter

    • @brucebaker744
      @brucebaker744 2 ปีที่แล้ว +6

      stop being lazy and learn native code...it'll make you a better programmer.

  • @MauroMB
    @MauroMB 2 ปีที่แล้ว

    Excellent!!!!

  • @MOKANN
    @MOKANN ปีที่แล้ว

    Hello, I made a push notification but I can't show the message on the screen 35:16

    • @HSinhori
      @HSinhori 8 หลายเดือนก่อน

      to com o mesmo problema

  • @s.m.imranahmed131
    @s.m.imranahmed131 2 ปีที่แล้ว +2

    This notification will not work while app is killed or background

    • @surflaweb
      @surflaweb 2 ปีที่แล้ว

      This is false I have tested the app while it was killed or closed and the notifications arrived after some 30s

  • @sarcastic_hi6526
    @sarcastic_hi6526 ปีที่แล้ว

    source code??

  • @federico4122
    @federico4122 ปีที่แล้ว +3

    How to send to specific user? from application when press one button

    • @shravanbisen6845
      @shravanbisen6845 หลายเดือนก่อน

      bro have you got the answer , have found the solution ?

  • @longtran1871
    @longtran1871 2 ปีที่แล้ว +3

    it's doesn't work

    • @antdx316
      @antdx316 ปีที่แล้ว

      yea : (

    • @dudutlesmono1799
      @dudutlesmono1799 ปีที่แล้ว +1

      it work for me. notification appear several minutes after send.

  • @mdarifnufqqdugir3278
    @mdarifnufqqdugir3278 3 ปีที่แล้ว +2

    Please sir it's request of all of the viewers
    .please start making vedios on fkutter please please please please

  • @sraldous
    @sraldous ปีที่แล้ว +1

    The notification text doesn't fit in the notification prompt screen like in your example, I see the icon and part of the title and it cuts off at the bottom, I had to remove your top and left padding for it to work ok. Otherwise, good tutorial, thanks. It's a shame you have to do so much work just for a notification!

  • @GauTrang_3e3
    @GauTrang_3e3 2 ปีที่แล้ว +2

    The first time I saw your videos was like 3 months ago and it helped me to do the chat app, but incredibily now I am with notifications, ty for your help mate, the video was so clear that I got everything perfect with no errors or problems like with other tutorials.

  • @antdx316
    @antdx316 ปีที่แล้ว

    The amount of work just to get simple app push notifications is super dumb.

  • @HSinhori
    @HSinhori 8 หลายเดือนก่อน

    aqui se o app está em primeiro plano ele fecha abruptamente, só funciona com ele fechado ou em segundo plano, como posso resolver?

  • @robertpeschke7746
    @robertpeschke7746 9 หลายเดือนก่อน

    You may need to update this video for TargetSDK 33

  • @SandhiyaS-o4u
    @SandhiyaS-o4u ปีที่แล้ว

    post video about push notification using firebase cloud messaging in java

  • @HammadKhanYT
    @HammadKhanYT ปีที่แล้ว

    This did not work for me, I tried everything but to no avail. I did try to implement it in my exist code and not a seperate app. May be I will try in separate application.

    • @brianmelita8447
      @brianmelita8447 10 หลายเดือนก่อน

      check app setting and enable notification

  • @pavankumarhegde3925
    @pavankumarhegde3925 2 ปีที่แล้ว

    How to send message using kotlin...? Anywhere kotlin message sending is not mentioned.... On notification receive is there... Why???

  • @msahkoo
    @msahkoo 2 ปีที่แล้ว

    I am noob in android studio, same steps should follow for java?

  • @Nidzo80
    @Nidzo80 7 หลายเดือนก่อน

    Does not work with Android 13

  • @dudutlesmono1799
    @dudutlesmono1799 ปีที่แล้ว

    it works for me. thanks very much.

  • @Trigoter
    @Trigoter 3 ปีที่แล้ว +1

    Can you add Turkish subtitles?

    • @Xnoz2005
      @Xnoz2005 3 ปีที่แล้ว

      Hindi, available

    • @ozzy7643
      @ozzy7643 ปีที่แล้ว

      ytnin altyazsını kullansana knk

  • @haskellscript
    @haskellscript ปีที่แล้ว

    this video is simply too good

  • @brucebaker744
    @brucebaker744 2 ปีที่แล้ว

    great video, only took one view to get it working. thanks a ton.

  • @athithyaparamesh8251
    @athithyaparamesh8251 2 ปีที่แล้ว

    In the channel name in App Info, it says Miscellaneous. How do I change that? Please help.

    • @athithyaparamesh8251
      @athithyaparamesh8251 2 ปีที่แล้ว +2

      Found out. We have to create a default channel Id in the Manifest file. Otherwise, Android will send our notifications in the Miscellaneous channel.

  • @jairlopezg
    @jairlopezg 2 ปีที่แล้ว

    Tutorial excelente!!

  • @shashwatmishra8204
    @shashwatmishra8204 ปีที่แล้ว

    Definitely not the feature I was looking for, been trying to send notifications from one device to another.