Implement Push Notifications with Xamarin.Forms (Android) and FCM

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ส.ค. 2024
  • In this video we will learn how to implement remote push notifications with Firebase Cloud Messaging (FCM). This first video of a series will implement it in your Xamarin.Forms Android app. We will see how to setup a Firebase project, get all the bits we need all the way down to actually receiving a push notification.
    💝 Join this channel to get access to perks:
    th-cam.com/users/GeraldVerslui...
    🛑 Don't forget to subscribe to my channel for more amazing content: th-cam.com/users/GeraldVerslui...
    🐦 Follow me on Twitter: / jfversluis
    🤝 Join the Discord server: / discord
    🔗 Links
    Sample App Repo: github.com/jfversluis/XFFCMPu...
    Plugin Repo: github.com/CrossGeeks/Firebas...
    iOS Video: • Implement Push Notific...
    Blog Post: www.telerik.com/blogs/how-to-...
    ⏱ Timestamps
    00:00 - Intro
    00:21 - Blogpost We Will Follow
    01:11 - Create Project in Firebase Console
    04:08 - Add Android App To Firebase Project
    06:54 - Setup Android Sample App
    07:43 - Install Plugin.FirebasePushNotifications
    08:59 - Configure Android App
    10:10 - Bootstrap Push Notifications
    11:54 - Android Notification Channels
    16:05 - Add GoogleServices.json file
    16:40 - Set GoogleServicesJson Build Action
    18:10 - Add Debug Code to Catch Token
    20:43 - Send Push Notification
    23:06 - Show Notification Bar On Android
    25:40 - Sending Notifications Through Console
    27:54 - Outro
    🎥 Video edited with Camtasia (ref): techsmith.z6rjha.net/AJoeD
    🙋‍♂️ Also find my...
    Twitter: / jfversluis
    Blog: blog.verslu.is
    Twitch: / jfversluis
    All the rest: jfversluis.dev
    #XamarinForms #PushNotifications #FCM #Xamarin #PushNotifications #Firebase #FirebaseCloudMessaging #Android
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    Also want to implement push notifications for iOS? Check this: th-cam.com/video/GNBuaAB8nR8/w-d-xo.html
    Or maybe you need to learn now how to _send_ a push notification? I got you covered right here: th-cam.com/video/VI1wgekz5ZM/w-d-xo.html

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

    THANK YOU SO MUCH GERALD! IVE BEEN WANTING TO SEE A TUTORIAL LIKE THIS! i didn't skip any ads to give you my thanks! you're the man!

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

      That is very thoughtful of you! Thank you for the support! Appreciate it! :)

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

    Thanks, man - I greatly appreciate that! This is the only one clear and step-by-step tutorial without extra Azure or AWS flavors. Just bare bones showing how it works. Praise God I found it!

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

      Glad to be able of service! :)

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

    Yeii.. 😍😍.
    Finally the wait is over !! 😁😁
    As u promised !! It's really worthy waiting !! 😍😍
    Thanks Gerald 🙏🙏🙏

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

      Woohoo! Thanks!

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

    This and the corresponding iOS example are excellent and easy to follow. Superb work. Many thanks.

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

      Glad it was helpful! Thanks you for letting me know, appreciate it :)

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

    How is this the only detailed "How to" about Firebase + Xamarin + Android app no youtube. This is unacceptable. Kudos to the tutorial maker(Gerald) for making our lives easier.

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

      Glad I could help out! Guess I need to make an updated .NET MAUI version soon!

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

    Dude thank u so much for this guide! Your explanation was completely clear and easy to follow, please continue with this kinda tuto of firebase

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

    I can't thank you enough for this step-by-step tutorial!
    Great job!! Great tutorial!!

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

      Thanks! Glad it is helpful!

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

    Thank you for this excellent tutorial. I have so much tested and now it works.

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

      Great to hear Miriam! Thanks so much for taking the time to let me know!

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

    Thanks a lot .Very easy to understand and I was thinking that it was harder to implement...U nailed it man : )

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

      Love to hear that, that was exactly what I wanted to achieve! Happy notificationing!

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

    Thank you for the great tutorial, Gerald! Truly appreciated!
    Please do a video on integrating notifications sent with an Azure notification hub.

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

      Will look into it!

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

    Wow, thank you very much for this video and all of your previous videos. There are several inquiries about push notification,
    first about the possibility of push it using HTTP Post Verb,
    and how to push notification between application users themselves without using FB Console, such as WhatsApp notifications when receiving a message, for example, thank you very much again and accept my regards.🌷🌷

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

      Glad it was helpful! Sending push notifications is on the list. In regard to "how to push notification between application users themselves", I understand what you mean, but that is not what is happening. There is always some kind of trigger to send the notification. In this case a message is added to the database of Whatsapp and that triggers the notification for instance :)

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

    Thanks Gerald, every video is perfect and useful

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

      Thank you Usama!

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

    Thank you! You provide so much value content!

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

      Thank you so much David! Glad you think so!

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

    Excellent tutorial, many thanks Gerald!
    Could you please make a video on how to do extra customizations .e.g. show the app mini icon in the status bar, include an image as part of the notification, custom notification background, for both Android and iOS (if possible). I understand that these are platform specific and there are online posts about them, but you always provide valuable tips & tricks in your videos :)

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

      Great suggestion! That one is definitely coming!

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

    Great tutorial, you are the best!

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

    Woof! so great, thanks for keeping your promise.
    Without embarrassment I would like to ask you more if it were not too much trouble.
    I would like you to do the second part where by pressing the notification it takes you to a specific page and you can retrieve the message.
    Thank you very much in advance.

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

      I don't think you can retrieve the actual message unless you also attach that as data, but I've added it to the todo list :)

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

    Great video 💪
    Thank you Jerald

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

    Perfect guy, I suffered from it a few days ago. Thanks

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

      Hope this helps!

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

    Great video, thanks so much!

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

    Awesome stuff 💪🏽

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

      Thanks Emmanuel!

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

    Thank you! You're the best, now I hope we'll see how to send notifications from the BackEnd side, like the WPF side or the server-side of the App.

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

      Thank you! Sending the notifications is definitely coming too :)

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

      @@jfversluis looking forward to it.😍😍

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

    Thank You so much Boss. I have managed to implement Push Notification on MAUI as well using the same technique. God bless you

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

      That is great to hear, thanks so much for letting me know!

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

      Hi there, I too try to implement push notifications on my Maui app, do you have any tips and advice to note before i begin to follow this tutorial?

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

      Didn't you have problems with compiling after adding those packages ??

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

    Thank you, very useful video🤝

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

      Glad you think so!

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

    Thank you for the tutorial: Just to add: you can simply restcall firebase with your server key and send pushes. All u need to know is the receipiens token id. so save that on your cloud, download user object and send pushes from client to client in within seconds. :)

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

      That is awesome! Thanks for the tip!

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

      Does Token ID Change? say when user opens the APP, i save their Token ID into my Database, how often should I update the Token ID (if it changes)?

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

      It can change from time to time. There is an event for when that happens. Hook into that and save/update it for the user when that happens

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

    Hi Gerald, your videos are great!!! I would like to see a video of how to send it to a specific user and also how to customize a notification, thanks!

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

      The video about sending push notifications is here: th-cam.com/video/VI1wgekz5ZM/w-d-xo.html

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

    You make it look so simple 👍

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

      If I can do it, you certainly can too!

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

      @@jfversluis 😁

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

    Thanks for you🖤🖤

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

    Very good tutorial, Thanks dear...

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

      Thanks for watching Satyendra!

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

    Thx for a great Video again, yes Firebase Database would be also great

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

      Noted! I'll see what I can do :)

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

    شكرا لك انت الافضل .انت تقدم محتوى جيد جدا . احب شرحك الجميل
    I will recommend my friends to follow your channel

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

      I have to admit I had to use Google Translate, but thank you so much! 😄

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

    Legend!

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

      Wait for it.... dary!

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

    This is great, thanks

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

      Thank you! Glad you think so!

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

    Excellent tutorial, many thanks Gerald!
    Please do a video on how to show the notification count over app icon in xamarin android

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

      I don’t think that’s possible on Android? At least not all Android versions

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

    excellent !!

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

      Thank you! Push notifications in combination with .NET MAUI will definitely come!

  • @mo7amedh.m264
    @mo7amedh.m264 3 ปีที่แล้ว +1

    thx for this video 😍 can you make a video about all thing and type of design data in firebase realtime database 🙏

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

      Added it to the list, can't promise anything yet, but who knows! :)

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

    Great video

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

      Thank you so much Marko!

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

    i love so much xamarin forms

  • @r.gopalakrishnan6926
    @r.gopalakrishnan6926 3 ปีที่แล้ว +1

    Very useful

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

    Great video ! Can you do a tutorial for MAUI Push notifications using either FCM or Azure ?

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

      That will probably come at some point, not sure when though!

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

    To view notifications in the foreground you can set the priority of the notification to "High" by adding the key/value "priority" and "high" to the custom data field in FCM

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

      Correct! Thanks for sharing!

  • @AbhishekSingh-vp2qi
    @AbhishekSingh-vp2qi 2 ปีที่แล้ว

    Hi sir thanks for the great video on notification.
    I have one query regarding action button on notification.
    As i have added two action button in the notification name as "Accept" and "Reject".
    When I am sending the notification the action button is showing in notification when my application is in foreground, but when my application is in background or killed the notification is showing without action button.

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

    For my app, I have the text message sender call and api that sends their message where the API stores the message with an associated conversation. It's a one-to-many relationship in my database (Conversation-->Messages and Conversation-->Subscribers).
    I want the API to also use Firebase to send a push notification to all other recipients in the conversation (usually just one) so that their app automatically calls an API to refresh all messages in the conversation and display any new/unread messages with a dot. How would I trigger the recipients to call api to refresh the conversation and show in phone app?

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

    hello Gerald, the problem is that when i publish the backend to azure the notification push will not work, i even used notification hub from azure, i couldnt register my device to receive notification could you please share for us some knowledge there.

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

    Brilliant, any changes for MAUI? Is Windows working as well? Greetings

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

    Great tutorial! Excellent delivery! Would this work hit Maui Hybrid as well or we would face problems in that context?

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

      Should work! A Blazor Hybrid app is still a .NET MAUI app!

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

      @@jfversluis I can confirm that it works! with minor (platform specific) changes. What I cant get it to do is ask for the "notifications permission"... I have to enable it manually whenever I uninstall the app (not when i rebuild).

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

    Thanks!

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

      Thank you for watching!

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

    Thanks for all the great videos!
    I actually came across your videos, while reviewing the new MAUI features in VS2022 and am very excited about the cross-platform possibilities. Would you please create a MAUI version of your Xamarin Firebase videos? Thanks

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

      That is great Tim, welcome! Actually a lot of that should not change too much :) probably over time I will redo some of them if there is enough ask, but the code will largely be the same. Let me know if you need anything!

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

      @@jfversluis Thanks for the great content, it's been really helpful! I've been trying to get this to work on Maui however it seems a lot has changed since this video was posted. There's quite a few issues with outdated plugins and build errors. I would really appreciate another updated video on this!

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

      @@db1477 This will 100% not work with .NET MAUI as the plugin needs to be structured differently. If you implement all the bits on the platform level push notifications will work. As far as I know there are no plugins that work with .NET MAUI right now, surely they will come when .NET MAUI goes GA.

    • @nehasharma-px2oh
      @nehasharma-px2oh 2 ปีที่แล้ว

      @@jfversluis Hello Gerald, I need to do this for .Net maui. Can you point me to any tutorial on how to do this for Maui.

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

      @@nehasharma-px2oh I don’t think there is one yet :)

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

    You can make a tutorial to change the status bar notification icon and add an image to the notification, it's great

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

    thank you you are the best

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

      Well... I don't know about that :D But thank you!

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

    Awesome video 😍🔥 could you cover Firebase Authentication and maybe Authentication for Firestore security rules... I cannot find a lot of documentation for Xamarin.forms

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

      Added it to the list, can't promise anything yet, but who knows! :)

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

    @Gerald Can you please make a video on how to open an XF Page when we click on notification depending on the data coming along the notification ?

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

      Added it to the todo list, thanks!

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

    I love you videos dude. A video on starting a xamarin ios/Adnroid application from a shared link on whatsapp for example would be great. thanks

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

      I think that is called deep linking which is also a hard topic... I think Xamarin.Essentials might have something to make it easier? I'll add it to the list :)

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

      @@jfversluis Hard topics are what drove me to this channel. Xamarin essentials have something called Launcher that actually launches a specific application from within another Xamarin application. What we are actually looking for is to open our Xamarin app from a link in a website, or within a text message or from a WhatsApp message etc. This topic is really worth a video. TH-cam is full of worthless videos that are waste of time to watch. Thanks in advance.

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

      @@eddienoureddine7408 I'll add it to the list :)

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

    Thanks for the series, really enjoyed it!
    Would be awesome if you could show how to use Push with Shiny some time. I tried following the documentation but it's inconclusive but I am sure you could do a great video series on it.

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

      I definitely want to do more with Shiny, but it might be for .NET MAUI though. Stay tuned!

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

    Awesome 👏🏻 👏🏻 👏🏻 can you please update push notifications for iOS too

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

      It’s coming don’t worry 😉

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

    Brilliant. I messed around with several different samples until I found this, which made it Soooo simple I got it working in my app in parallel to the video.
    Thanks. Now moving on to the iOS version.
    Would really like to see how you can implement in a server so I can send messages from it through Firebase.

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

      Thank you Brian! That was exactly my goal :) I noticed about a lot of documentation and docs that small details were missing which make it not work. With a video that’s not possible, I have to show a working demo so I need to show all the bits :) glad I was able to do that!
      Sending a notification through code is coming!

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

    Hello Gerald
    Thank you for your interesting video.
    I was able to carry out a little test thanks to your tutorial but sometimes the notification does not arrive on 10 launched we receive 5.
    This leads me to ask a question: there is no mechanism in Xamarin to notify the client (device) even when the application is closed.
    Like Whatsapp or Gmail when a new message arrives, you have a notification and a message counter on the application icon.
    Do you have an idea of the design to put in place to create such a system?

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

    Watched your video and Followed every step....everything worked great up until i got to the first test. First Test message worked great...got the token from the output. But...after that i ran into an issue....after refreshing the the app it did not generate the Token in the output. Tryna figure out why at the moment. Any idea why it doesnt generate any longer?

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

    Thanks Gerald for Amazing video, I am able implement this and receive push notification. I have one problem I am not able receive notification when app is in closed or app is in the foreground, can you please provide details how to receive notification in android when app is in different conditions?

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

    Could you please give an advice , my app is installed approximately on 100 phones , but only 25-30 phones received notification, what should i do?

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

    I am running into Xamarin.googleplayservices.117.0.05 is not compatible with mono android 11.0
    I am on windows machine.
    using Visual Studio 2019. Do I have to upgrade to visual studio 2022

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

    Hi Gerald, could you please help by creating one video for migrating the legacy FCM to FCM v1 to keep receiving notifications for xamarin apps please.

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

    Great tutorials I love your videos and hopefully you can guide me on this one. I only get a token on debug mode and the notification is received only when the app is running on the background

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

      Thank you for the kind words! No token in production indicates some kind of mismatch in the configuration probably. You should handle the notification when the app is in the foreground yourself. See the video on iOS on how to do that.

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

    Great video. What about when we need it to be automatically? (When a new doc is added to a collection for example).

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

      You’ll need to implement the same code to send the notification but then whenever the event happens that you want to trigger a notification for :)

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

    And how would one user send notification to another one. Let's say an appointment scenario. If I want to make an appointment for your course I send you a notification with details of the appointment (like date, course type etc) and you can accept/decline it and after your response I get notify with your response

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

    Thank you Gerald 🌹 , Very Well Explained. Now I want to implement through code. Can You Please Suggest Something so that I could work on it.

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

      A todo app is always popular 😄

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

    Very informative Gerald. Is the FCM you used on this Vlog free?

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

      Yes!
      “Firebase Cloud Messaging (FCM) is a cross-platform messaging solution that lets you reliably send messages at no cost.”
      Source: firebase.google.com/docs/cloud-messaging

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

      @@jfversluis this is great🤩. I’ll try it today. Thank you very much

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

    Hello, excelent video, one question, do you do remote personal assistance?

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

      Thank you Gerardo! Unfortunately I do not, sorry!

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

    hello, great job, i installed the app on a my device. how do i know its token to pass to FB for sending notification?

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

    Hi, Great video. Do you have one where you can add icons and different sounds depending on notification data

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

      I don't have that one yet, sorry!

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

    Okay, now we need the part "How to call firebase from your backend to make it send notification to xamarin app" :D

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

      It’s coming!

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

      @@jfversluis what about the iOS implementation my xamarin leader

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

      @@sipepguru it’s coming! Uploading it today, will be released next week or available immediately if you are a member on the channel :)

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

    could make a video of authentication with firebase and xamarin forms?. your videos are very good

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

      Thanks! I will see if I can do that :)

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

    once I registered the device there no problem with getting Token, but, after I delete app and test again the app doesn't get the Token. I cannot receive the notification anymore.
    how can I store token?

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

    Hey Gerald, how about push notification in MAUI? It would be a great video!

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

      Absolutely! It’s coming!

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

    hi, Gerald, I am a bit confused, as we are adding the token every time to the firebase, how to make it automatic without every time entering the token?

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

      That’s just for the debugging. If skip over that part and select which all you want to send notifications too then it will be sent to all registered devices. Or alternatively, you can create topics that people subscribe to (by enabling or disabling something in your app) and you can send something to that topic. Firebase will know which tokens are subscribed to which app or which topic

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

    Great video again! How can I send notification from App? I mean this is sending from Firebase Console, right? How to send an App to another Apps? Will you make a video? :D

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

      Typically you don’t send a notification from one app to another directly, it will be triggered by something on the server. A video on that is definitely coming!

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

      @@jfversluis Thanks 😊, waiting for that.

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

    Thanks for the video. OK we learned how to recieve the notifications. But how about sending them? Only through the Firebase console? I don't think so. You have to make a video for this. Also, how to send to a specific phone-user? How can we know the user's token? Does the token changing everytime? Sorry for the too many questions but they came in mind when i saw your video and implement the code.

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

      Way ahead of you 😏 th-cam.com/video/VI1wgekz5ZM/w-d-xo.html

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

    Thank you!, one thing to notice, it doesn't work with the latest version and Android 12 either, have to see what changed and what's needed to adjust (at least in my case)

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

      I think in one of the comments here there was a solution to make it work with Android 12

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

    does this work the same with MAUI?
    i'm a student at PXL Hasselt and we have to make a project with MAUI

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

      Hey there! Cool I think I will be at PXL on October 28th :D
      Push notifications definitely work, I don't think this plugin is updated to be used with .NET MAUI though

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

    You are the best! Thanks so much... I have another request for you, could you explains how you can use authentication with differents socials medias like Facebook, Google, etc

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

      Thank you Miguel! That one is one the list. Not sure how fast I will get to it :)

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

    Great video. Learn a lot.
    But is there a more dynamic way to send the notifications rather than each time passing the tokens on the FCM Registration token?

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

    Great Tutorials. Actually i am able to get the notification when my app is on or in foreground, is there any way to get the notification when my app is in foreground or when my app is on

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

      Check the FAQ on the repository for this plugin, there are some hints in there

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

    Is it only possible to send Messages to running (minimized) Apps? When the app is completely ended, its not receiving anything. I think there are for example News Apps that receive push messages despite not running app?

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

      It’s possible I think there might be a bug in the library that prevents this. Check the repo for that :)

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

    I tryied your sample, i put my google.json file, changed the app name to mine, but the notifications are not coming. I tryied to the specific token and to all but with no luck. What else can i look in to? Thank you

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

      Hard to say without any more info. Make sure the app name is exactly the same including the casing and that the build action is set to GoogleServicesJson

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

    many thanks Mr. Gerald , Very easy to understand. I have one question , How to customized UI Notification(e.g. :- Title will be on Bold and need Company logo as icon) in Cross platform. Please help me on that.

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

      Thank you! I'm afraid I'm not really sure what you mean though.

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

      @@jfversluis My means how to make customized of notification when Application on background in Adnriod . when application on foreground then i can handle notification from "Onnotificationreceived" so How to handle notification when app in background.

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

    Hi Garald, great tutorial! I have it working in my emulator after following your instructions. I'm just a bit unclear how to handle the token in a production app. You mentioned that when not in debugging that we won't need to refresh the token. So if a user installs my app from the play store for example, then I will just need to get the token once, since it won't change? is that right? I assume that if they clear the app data or uninstall and reinstall the app the token will change though right?

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

      It will change even when the user keeps it installed. So make sure, if you store that token, to expect it to update. It can happen at any time, but the event will be triggered and you will get the new token. Does that make sense?

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

      @@jfversluis oh so even in production the token can change? So I guess when it changes I will need to run some code to update the token in my database.

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

      @@SupremeBeever exactly! :)

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

      @@jfversluis Ok thanks for the info! I will need to get a bit creative because my app can have registered users AND guests. For registered users it's easy, we can store in their profile the token and update it when needed, but for guests who don't have a user profile on our server I guess we can store the token on a per order basis.

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

    how I can send this notification by xamarin forms app not firebase console, I hope to send this notification to many mobile from inside my xamarin forms app?

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

      Video is coming on that :)

  • @user-en5wq5xn7r
    @user-en5wq5xn7r 2 หลายเดือนก่อน

    do you have a drop date for the MAUI version of this video. It was so helpful, thank you

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

      Thank you! Unfortunately not yet. It’s a lot of work I keep pushing it back 😅 I’ll get to it soon!

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

    Hi, Is there a way that we see the notification even when we are using the app? because mine will only show if the app is in foreground. And also I want a banner to Show on top

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

      I think this might be a bug with this library, it should just work :)

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

    Thanks for that video! Helped me a lot. I set the Target Android Version to 33 and in my Emulator I don't get messages when the app is closed (I get them when it is open). On an older device it works both when the app is open or closed. Do you have any idea?

    • @Solution-In-Code
      @Solution-In-Code 11 หลายเดือนก่อน

      I am facing the same problem. Have you already solved?

    • @stefano4993
      @stefano4993 11 หลายเดือนก่อน +1

      @@Solution-In-Code you need to add in your manifest.
      And then something like this to your mainactivity to activate a permission popup on start:
      protected override void OnStart()
      {
      base.OnStart();
      const int requestLocationId = 2023;
      string[] notiPermission = {
      Manifest.Permission.PostNotifications
      };
      if ((int)Build.VERSION.SdkInt < 33) return;
      if (this.CheckSelfPermission(Manifest.Permission.PostNotifications) != Permission.Granted)
      {
      this.RequestPermissions(notiPermission, requestLocationId);
      }
      }

  • @user-lm3ss5bf9l
    @user-lm3ss5bf9l ปีที่แล้ว

    Hey, thanks for the video, do we have option to disable push notification from app side for pushes with some particular tags?
    Thanks

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

      Not sure if I fully understand what you mean. But I’d say that is something you would want to fix on the server side when sending notifications

    • @user-lm3ss5bf9l
      @user-lm3ss5bf9l ปีที่แล้ว

      @@jfversluis Thanks for the quick response

    • @user-lm3ss5bf9l
      @user-lm3ss5bf9l ปีที่แล้ว

      @@jfversluis I need both firebase crashlytics and pushnotification, so on adding Plugin.FirebasePushNotification and Plugin.FirebaseCrashlytics, the android project throws error as
      "Type com.google.android.gms.internal.firebase_messaging.zza is defined multiple times: "
      Any suggestions on this? Thanks

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

    Hi Gerald, thank you so much for this video it means a lot. Am new to this and I was debugging this on physical device today and somehow the notifications aren't going through. Is there something am missing?

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

      Glad to be of service! However the question you’re asking is kind of hard to answer as I don’t know what you did or what you’re doing exactly:)

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

      @@jfversluis Oh I meant that when I send push notifications from firebase console to my application installed on a physical device they didn't't get come through but later after toggling my app notifications default channel on and off they started coming through.
      Anyways thank you so much for this video and your reply, you got me binge watching your videos 📺 they very helpful, please keep up the good work. Much appreciated, kudos 👏

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

    Great tutorial. Thanks a lot for sharing. I noticed you went specific to target api 26 for it to work. Now that Google has made it madetory to target api 30+. How will it work, in my old project it works fine. When I upgraded to target 30, things are dancing. Any work around.

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

      That depends on what "things are dancing" means. That is not great information to give advice on :)

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

      @@jfversluis after this response, I cleaned the project of all old implementation of push notifications and started from scratch following your video and sample project. All is good now. Thanks alot.

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

    Thank you so much you really helped me, but why notifications is not showing in the foreground

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

      I think you have to do that yourself by implementing something in the on notification received handler

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

    Hi when I try to update to the latest version nuget package of the FCM it says 'FirebasePushNotificationManager' does not exist in the current context

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

      Then they might’ve changed something in the latest version

  • @AMIRKHAN-dm2fm
    @AMIRKHAN-dm2fm 3 ปีที่แล้ว

    Thank you very much .but what about App Center notifications?Why we use Firebase when we have Microsoft's App Center.
    and please clear one thing is firebase notifications is free or not?
    Thanks.

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

      App Center has announced that they will deprecate push notifications, so that is why :)

    • @AMIRKHAN-dm2fm
      @AMIRKHAN-dm2fm 3 ปีที่แล้ว

      @@jfversluis oh.
      but i have one request pleas promote app canter by making videos on different topics like in app update crash reporting etc

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

    thanks for this tutorial , I have an issue on Notification opened not fire

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

      Please check the documentation of the plugin. Not sure why that could happen.

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

    why does not the android app ask for notification permission? I face the same issue

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

    Hello,
    I really need your help
    I have created a xamarin.forms project
    And i connected it to an SQL Server database
    I want to Send notification to clients when ever a condition occured, i mean i want to check the data into the database every day, if the data matched with a specific data, i want all clients(Users) get a specific notification
    How can i do that?

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

      Lots of ways to do that, also depending on where your database lives. First thing that comes to mind is use a Azure Function that is triggered every day :)

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

    Excellent tutorial, many thanks Gerald!
    Am having a little challenge.
    1. when i push out notification, I noticed that if the recipient app is off or killed or not running, most of the times the notification fails
    2. If the recipient app is active on the screen, most of the times, the notification also fails
    Kindly assist. if the recipient phone is off, I want the notification delivered when the phone is put on.
    Thanks

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

      That should work :) I think there was an issue with the plugin for this, you might want to check the author of the plugin and see if there are any open issues for it

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

      Ok. I followed the tutorial step by step and used exactly the plugin you used. I will give it a trial and get back to you. Thank you so so much