Android Push Notification Using Firebase Cloud Messaging in Kotlin | GeeksforGeeks

Sdílet
Vložit
  • čas přidán 29. 08. 2021
  • 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.geeksforgeeks.org/how-to-...]
    Complete Android Tutorial [www.geeksforgeeks.org/android...]
    Apply For Video Internship Program - script.geeksforgeeks.org/on-b...
    Our courses: practice.geeksforgeeks.org/co...
    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.com/store/apps/de...
    If you wish, translate into the local language and help us reach millions of other geeks:
    czcams.com/users/timedtext_cs_p...
    Follow us on our Social Media Handles -
    Twitter- / geeksforgeeks
    LinkedIn- / geeksforgeeks
    Facebook- / geeksforgeeks.org
    Instagram- geeks_for_g...
    Reddit- / geeksforgeeks
    Telegram- t.me/s/geeksforgeeks_official
    Also, Subscribe if you haven't already! :)

Komentáře • 51

  • @GauTrang_3e3
    @GauTrang_3e3 Před 2 lety +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.

  • @MaricelaPotoc
    @MaricelaPotoc Před 2 lety +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 Před 2 lety

      how to make notification work with all versions of mobiles?

  • @brucebaker744
    @brucebaker744 Před 2 lety

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

  • @maurocos9118
    @maurocos9118 Před 2 lety

    You are the Best, Sir. Thank you very much

  • @axw-ei3fn
    @axw-ei3fn Před 2 lety

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

  • @gxvigo
    @gxvigo Před 2 lety +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?

  • @vahidvahidi4203
    @vahidvahidi4203 Před 11 měsíci

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

  • @jairlopezg
    @jairlopezg Před 2 lety

    Tutorial excelente!!

  • @osamaghazal
    @osamaghazal Před rokem

    you are great man
    Thank you very much

  • @muhannddh
    @muhannddh Před rokem +9

    why there is no GitHub for the source Code ?

  • @cemilbasar9781
    @cemilbasar9781 Před rokem

    wonderful video greetings from Istanbul/Türkiye

  • @dudutlesmono1799
    @dudutlesmono1799 Před rokem

    it works for me. thanks very much.

  • @haskellscript
    @haskellscript Před rokem

    this video is simply too good

  • @sksuman4400
    @sksuman4400 Před 2 lety +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.

  • @msahkoo
    @msahkoo Před 2 lety

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

  • @MauroMB
    @MauroMB Před 2 lety

    Excellent!!!!

  • @Kaito-rt4ux
    @Kaito-rt4ux Před 8 měsíci

    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?

  • @Azil7136
    @Azil7136 Před 2 lety +2

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

  • @federico4122
    @federico4122 Před rokem +2

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

  • @gioacchinogarofalo2403

    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?

  • @HSinhori
    @HSinhori Před 6 měsíci

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

  • @pavankumarhegde3925
    @pavankumarhegde3925 Před 2 lety

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

  • @sraldous
    @sraldous Před 11 měsíci +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!

  • @athithyaparamesh8251
    @athithyaparamesh8251 Před 2 lety

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

    • @athithyaparamesh8251
      @athithyaparamesh8251 Před 2 lety +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.

  • @andonisgaja7379
    @andonisgaja7379 Před 6 měsíci +1

    Not working at all :(

  • @HammadKhanYT
    @HammadKhanYT Před rokem

    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.

  • @MOKANN
    @MOKANN Před rokem

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

    • @HSinhori
      @HSinhori Před 6 měsíci

      to com o mesmo problema

  • @robertpeschke7746
    @robertpeschke7746 Před 7 měsíci

    You may need to update this video for TargetSDK 33

  • @mdarifnufqqdugir3278
    @mdarifnufqqdugir3278 Před 2 lety +2

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

  • @user-jk1uh7qe3x
    @user-jk1uh7qe3x Před rokem

    post video about push notification using firebase cloud messaging in java

  • @Nidzo80
    @Nidzo80 Před 5 měsíci

    Does not work with Android 13

  • @christiancasanova4176
    @christiancasanova4176 Před rokem +5

    doesn't work anymore

  • @Trigoter
    @Trigoter Před 2 lety +1

    Can you add Turkish subtitles?

    • @Xnoz2005
      @Xnoz2005 Před 2 lety

      Hindi, available

    • @ozzy7643
      @ozzy7643 Před rokem

      ytnin altyazsını kullansana knk

  • @mdarifnufqqdugir3278
    @mdarifnufqqdugir3278 Před 2 lety +3

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

    • @brucebaker744
      @brucebaker744 Před 2 lety +6

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

  • @sarcastic_hi6526
    @sarcastic_hi6526 Před 10 měsíci

    source code??

  • @s.m.imranahmed131
    @s.m.imranahmed131 Před 2 lety +2

    This notification will not work while app is killed or background

    • @surflaweb
      @surflaweb Před rokem

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

  • @antdx316
    @antdx316 Před rokem

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

  • @shashwatmishra8204
    @shashwatmishra8204 Před rokem

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

  • @longtran1871
    @longtran1871 Před rokem +3

    it's doesn't work