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

Поділитися
Вставка
  • Опубліковано 17 гру 2024

КОМЕНТАРІ • 439

  • @jfversluis
    @jfversluis  2 роки тому

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

  • @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  Рік тому +2

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

  • @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 3 роки тому +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  3 роки тому +1

      Glad to be able of service! :)

  • @zoyanoor7450
    @zoyanoor7450 7 місяців тому +3

    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.

  • @davidescalante2642
    @davidescalante2642 8 місяців тому

    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

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

  • @xxThemoritzxx
    @xxThemoritzxx 2 роки тому +2

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

  • @NunoSoaresOnline
    @NunoSoaresOnline 3 роки тому +2

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

  • @udaysuddhala3512
    @udaysuddhala3512 3 роки тому

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

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

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

  • @miriamwalter2028
    @miriamwalter2028 3 роки тому +1

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

    • @jfversluis
      @jfversluis  3 роки тому

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

  • @hamzaduman4946
    @hamzaduman4946 3 роки тому +4

    Thank you Gerald,
    I'd be glad if you could help me with a question.
    "Default FirebaseApp is not initialized in this ......................... Make sure to call FirebaseApp.initializeApp(Context) first."
    i get the error.

    • @jfversluis
      @jfversluis  3 роки тому

      And did you call that method? ;)

    • @otakulyrics67
      @otakulyrics67 3 роки тому

      Did you fixed this? Im getting the same error...

    • @jfversluis
      @jfversluis  3 роки тому +1

      Make sure you call the method from the error in the MainActivity

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

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

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

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

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

  • @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 3 роки тому

      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  3 роки тому

      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

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

  • @F0YF0YT0S
    @F0YF0YT0S 2 роки тому +1

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

    • @jfversluis
      @jfversluis  2 роки тому +1

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

    • @F0YF0YT0S
      @F0YF0YT0S 2 роки тому

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

  • @robertocruz231
    @robertocruz231 3 роки тому +1

    Great tutorial, you are the best!

  • @emmanueladebiyi2109
    @emmanueladebiyi2109 3 роки тому

    Awesome stuff 💪🏽

  • @usamaelhamed4324
    @usamaelhamed4324 3 роки тому

    Thanks Gerald, every video is perfect and useful

  • @josedonizeteoliveirajunior1744
    @josedonizeteoliveirajunior1744 3 роки тому

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

  • @leosouza1520
    @leosouza1520 Рік тому +2

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

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

  • @yannicknfankou7739
    @yannicknfankou7739 Рік тому

    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?

  • @danm2092
    @danm2092 6 місяців тому

    Great video, thanks so much!

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

  • @ismailzumrawi
    @ismailzumrawi 3 роки тому +1

    hey, this is an excellent job, I have a problem with a class appliction "Application cannot have both a type with an [Application] attribute and an [assembly:Application] attribute."

    • @jfversluis
      @jfversluis  3 роки тому

      There can be only one class marked as application. You’re going to need to combine those :)

    • @ismailzumrawi
      @ismailzumrawi 3 роки тому

      @@jfversluis thanks , also token generated by OAuth(webapi). is different from token generator by xamarin forms how to make them same

    • @jfversluis
      @jfversluis  3 роки тому

      Not sure what you mean… Oauth tokens are supposed to be different

    • @ismailzumrawi
      @ismailzumrawi 3 роки тому

      @@jfversluis i mean I get token generated by Xamarin forms not API to send token>>> so I want to store it in the database to send notifications to a list of users depend on the token

    • @ismailzumrawi
      @ismailzumrawi 3 роки тому

      @@jfversluis in your video you take tokens from the output window so how can I get it from code

  • @comeandgetsome_
    @comeandgetsome_ 2 роки тому +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  2 роки тому

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

    • @ddavid8888888
      @ddavid8888888 2 роки тому

      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 2 роки тому

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

  • @abdallaouiayoub7236
    @abdallaouiayoub7236 3 роки тому +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  3 роки тому

      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.

  • @interpreterdeveloping
    @interpreterdeveloping 2 роки тому +1

    Thanks for you🖤🖤

  • @bhokalady
    @bhokalady 2 роки тому

    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  2 роки тому

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

    • @bhokalady
      @bhokalady 2 роки тому

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

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

  • @gustavobarbosa8861
    @gustavobarbosa8861 3 роки тому

    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  3 роки тому +1

      The video about sending push notifications is here: ua-cam.com/video/VI1wgekz5ZM/v-deo.html

  • @alessandrolanzoni9288
    @alessandrolanzoni9288 2 роки тому +2

    Hi Geralt, please, can you Update this video tutorial for Android 12. It's seem that don't work whit the latest version of Android

    • @irdalan1362
      @irdalan1362 2 роки тому

      I have the same issue and have not yet received an answer in the issues section of their github repository.

    • @jfversluis
      @jfversluis  2 роки тому

      Define "not working"? Do you get any error or something? Where is the link to the repo issue?

    • @irdalan1362
      @irdalan1362 2 роки тому

      @@jfversluis See issue "Android 12 does not receive Push Notification #420". Not working means that if you try your sample implementation on Android 12 you will not get any notification and you will not be able to publish the app on play store

    • @jfversluis
      @jfversluis  2 роки тому

      I don’t work on that repo. That will be something the maintainers need to fix then :)

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

  • @deaasaleh3613
    @deaasaleh3613 3 роки тому

    Great video 💪
    Thank you Jerald

  • @JaisonCanarys
    @JaisonCanarys Рік тому

    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

    • @JaisonCanarys
      @JaisonCanarys Рік тому

      @@jfversluis Thanks for the quick response

    • @JaisonCanarys
      @JaisonCanarys Рік тому

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

  • @timblack4549
    @timblack4549 3 роки тому +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  3 роки тому

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

  • @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 Рік тому

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

    • @stefano4993
      @stefano4993 Рік тому +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);
      }
      }

  • @MohamedIT2008
    @MohamedIT2008 3 роки тому +1

    is there anyway to see message when app in foreground --- very important >>> or tell me is there another way?

    • @jfversluis
      @jfversluis  3 роки тому +1

      Just subscribe to the NotificationReceived event and show it anyway you like :)

    • @mikailkalkan9888
      @mikailkalkan9888 3 роки тому

      @@jfversluis can you show how to do it ?? im really struglling on that one

  • @satyendra1313
    @satyendra1313 3 роки тому

    Very good tutorial, Thanks dear...

    • @jfversluis
      @jfversluis  3 роки тому

      Thanks for watching Satyendra!

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

  • @frederikbrandt5281
    @frederikbrandt5281 3 роки тому +1

    Good video, but I am missing the step for integrating notifications sent with an Azure notification hub

    • @jfversluis
      @jfversluis  3 роки тому

      That's correct because this uses Firebase :) Send push notifications is here: ua-cam.com/video/VI1wgekz5ZM/v-deo.html
      This is an alternative to Azure Notification Hub. I might do it for Azure still as well

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

  • @user-en5wq5xn7r
    @user-en5wq5xn7r 6 місяців тому

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

    • @jfversluis
      @jfversluis  6 місяців тому

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

  • @dolphinedge
    @dolphinedge 3 роки тому

    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  3 роки тому

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

    • @dolphinedge
      @dolphinedge 3 роки тому

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

  • @nicoarabogdan6090
    @nicoarabogdan6090 3 роки тому

    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

  • @RaabStephan
    @RaabStephan 3 роки тому +1

    Legend!

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

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

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

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

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

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

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

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

  • @kenny_ali
    @kenny_ali 3 роки тому

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

    • @jfversluis
      @jfversluis  3 роки тому

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

  • @Uberhexation
    @Uberhexation 2 роки тому +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  2 роки тому +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

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

  • @edmatixmazik848
    @edmatixmazik848 3 роки тому

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

    • @jfversluis
      @jfversluis  3 роки тому +1

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

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

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

  • @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. UA-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 :)

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

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

  • @josa951
    @josa951 2 роки тому

    Great video

    • @jfversluis
      @jfversluis  2 роки тому +1

      Thank you so much Marko!

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

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

  • @andreyskripnikov4802
    @andreyskripnikov4802 3 роки тому

    Thank you, very useful video🤝

  • @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! :)

  • @loubarr1957
    @loubarr1957 3 роки тому

    Hiya - AMAZING TUTORIAL! I have hit a brick wall though. Every state works (foreground, background, closed) However notifications don't come through when the app has been killed/closed for the FIRST time. If I re-open the app and then close it - they come through! Do you have any idea why first load and then first close they don't come through?? Thanks!

    • @jfversluis
      @jfversluis  3 роки тому +1

      Are you sure you’re not resetting the token on each start?

    • @jfversluis
      @jfversluis  3 роки тому +1

      Oh and thanks for the kind words of course :)

    • @loubarr1957
      @loubarr1957 3 роки тому

      @@jfversluis I've set the token to remain the same whilst I debug. If I load the app first time and put it into the background it will work fine. As soon as I close/kill it the notifications don't come through. If I then re-open the app and close it, they successfully come through! I have no idea why this is happening 😂

    • @loubarr1957
      @loubarr1957 3 роки тому

      @@zerosh1n Hiya, so I realised it was a bug with debug. Once I published the app via Google play store and downloaded it via Google play it worked in all states every time! Hope that helps

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

  • @kldpsaraswat
    @kldpsaraswat 3 роки тому +1

    How to add app icon for fcm notification, because currently we are getting a gray dot. Please update on this. Thanks

    • @emmanueladebiyi2109
      @emmanueladebiyi2109 3 роки тому +1

      There is an option to provide a url for the notification's image on the console.

    • @jfversluis
      @jfversluis  3 роки тому +1

      That is including an image to go with the notification, you can also set an icon that shows up in the top bar. I will make another video on how to customize that some more

    • @emmanueladebiyi2109
      @emmanueladebiyi2109 3 роки тому

      @@jfversluis Oh! I didn't realise

    • @jfversluis
      @jfversluis  3 роки тому +2

      @@emmanueladebiyi2109 no worries! You were just trying to help which is never a bad thing :)

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

  • @minhtuan737
    @minhtuan737 3 роки тому

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

  • @SayyadHasan
    @SayyadHasan 3 роки тому +1

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

    • @jfversluis
      @jfversluis  3 роки тому +1

      It’s coming don’t worry 😉

  • @Vuyiswamb
    @Vuyiswamb 2 роки тому

    Good Day Gerald , how do i customize the notification with icons and a different background , did you create a video already for that ?

    • @jfversluis
      @jfversluis  2 роки тому +1

      Didn't do a video yet! I'll do some more notification videos for .NET MAUI

    • @Vuyiswamb
      @Vuyiswamb 2 роки тому

      @@jfversluis Noted with thanks. one last question ,
      1) how long does the token last before it expire
      2) does Firebase differentiate between a token created in Debug and the token created when the app is in release mode ?
      Thanks again for the videos and responses in questions i asked

    • @jfversluis
      @jfversluis  2 роки тому +1

      1) probably check the docs not sure
      2) yes the debug and production environments are definitely different

    • @Vuyiswamb
      @Vuyiswamb 2 роки тому

      @@jfversluis Noted with Thanks

    • @Vuyiswamb
      @Vuyiswamb 2 роки тому

      @@jfversluis Thank you

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

  • @hdgmar1725
    @hdgmar1725 2 роки тому

    excellent !!

    • @jfversluis
      @jfversluis  2 роки тому +1

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

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

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

  • @michaelalaohuru
    @michaelalaohuru 3 роки тому

    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  3 роки тому +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 3 роки тому

      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

  • @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 😏 ua-cam.com/video/VI1wgekz5ZM/v-deo.html

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

  • @SupremeBeever
    @SupremeBeever 3 роки тому

    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  3 роки тому

      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 3 роки тому

      @@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  3 роки тому

      @@SupremeBeever exactly! :)

    • @SupremeBeever
      @SupremeBeever 3 роки тому

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

  • @paddeeayen8442
    @paddeeayen8442 Рік тому

    Your videos are very useful and to the point. Thanks. Could you please remake this video to work with .Net MAUI. I've been trying to get FCM to work in MAUI for 3 days now and we are frustrated to the point of building our app with another stack. Push notifications is a common thing, why is it so hard to do in MAUI

    • @jfversluis
      @jfversluis  Рік тому

      I definitely will make this for .NET MAUI. I’m curious, why do you think this will be easier in other stacks? Personally I think push notifications are hard period. No matter what technology you’ll use 😅

    • @paddeeayen8442
      @paddeeayen8442 Рік тому

      @@jfversluis I like .Net stuff and MAUI but some things are just so over the top difficult to get done in MAUI. For example, everything I have tried to do in firebase. I had to write my own wrapper on top of the REST api for firebase firestore to get to use it in MAUI. I can't get a REST api for the push notifications so I had to result to trying out each nuget package I found with examples of how to implement them. So far I got none to work. As for some of the other stacks, it looks so easy to do in the examples I have seen, maybe because google directly supports them.

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

  • @michael89685
    @michael89685 2 роки тому

    Hello Gerald, thanks for this tutorial. have you ever implemented the part where the app is close?
    //Handle notification when app is closed here CrossFirebasePushNotification.Current.OnNotificationReceived += (s, p) => { };
    How can one open the app from here? thank you.

  • @cissemy
    @cissemy 3 роки тому

    Hi Gerard,
    How can I implement notification using azure notification hub ?
    Can you make a video about that ?
    Thanks

    • @jfversluis
      @jfversluis  2 роки тому +1

      Azure Notifications Hub will be coming, but just for .NET MAUI probably!

  • @dreamhunter2895
    @dreamhunter2895 2 роки тому +1

    Thanks Sir, I am getting error FirebaseInstanceId: Token retrieval failed: SERVICE_NOT_AVAILABLE. Please help me on this. Previously it was working perfectly.

    • @jfversluis
      @jfversluis  2 роки тому

      Not sure to be honest. Search for that error and see what you find

  • @sauravkumar2464
    @sauravkumar2464 Рік тому

    If possible can you add a video for uwp as well?

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

  • @arjaymaligaya6272
    @arjaymaligaya6272 2 роки тому

    Hi Gerald this is great, but how to send push notification even the xamarin app is not running or terminated.

    • @jfversluis
      @jfversluis  2 роки тому

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

  • @ChanoTSG
    @ChanoTSG 2 роки тому

    i love so much xamarin forms

  • @mohammadradwan752
    @mohammadradwan752 3 роки тому

    Thank you Gerald, Can I send a notification from an app to another app. in other words say I don't wanna use the Firebase console to send the message.

    • @jfversluis
      @jfversluis  3 роки тому

      You're welcome! Yes and no. You can of course trigger a notification through code in your app, the more typical scenario is to have it happen on some kind of server-side trigger. For instance, a record is added to the database. And a record being added can be a chat message in your chat app or a post in your social media app. That then triggers a notification to the client apps :)
      Does that make sense? I'm planning to do a more intro kind of video to the whole concept of push notifications, I'll make sure this is in it.

    • @mohammadradwan752
      @mohammadradwan752 3 роки тому

      @@jfversluis Much Much Much Obliged, I'm developing (my life project) and it uses such mechanism. So I'll be much grateful to you. I'll be waiting for your next video, Meanwhile, what do you think of using WhatsApp as an alternative?