No video

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

  Рет қаралды 54,266

Gerald Versluis

Gerald Versluis

Күн бұрын

Пікірлер: 439
@jfversluis
@jfversluis Жыл бұрын
Also want to implement push notifications for iOS? Check this: kzbin.info/www/bejne/fX-lppR3d52hiJo Or maybe you need to learn now how to _send_ a push notification? I got you covered right here: kzbin.info/www/bejne/jHqUqJqboN9okK8
@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 Жыл бұрын
Glad I could help out! Guess I need to make an updated .NET MAUI version soon!
@vitalchance5768
@vitalchance5768 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 жыл бұрын
Glad to be able of service! :)
@kuyaian7090
@kuyaian7090 3 жыл бұрын
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 жыл бұрын
That is very thoughtful of you! Thank you for the support! Appreciate it! :)
@davidescalante2642
@davidescalante2642 4 ай бұрын
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
@comeandgetsome_
@comeandgetsome_ 2 жыл бұрын
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 ??
@darrabam
@darrabam 3 жыл бұрын
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 жыл бұрын
Great suggestion! That one is definitely coming!
@normlough2486
@normlough2486 3 жыл бұрын
This and the corresponding iOS example are excellent and easy to follow. Superb work. Many thanks.
@jfversluis
@jfversluis 3 жыл бұрын
Glad it was helpful! Thanks you for letting me know, appreciate it :)
@NunoSoaresOnline
@NunoSoaresOnline 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 жыл бұрын
Will look into it!
@miriamwalter2028
@miriamwalter2028 2 жыл бұрын
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!
@muhammadyaseen1418
@muhammadyaseen1418 3 жыл бұрын
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 жыл бұрын
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 :)
@jbladimir16
@jbladimir16 3 жыл бұрын
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 жыл бұрын
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 :)
@madraven37
@madraven37 3 жыл бұрын
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 жыл бұрын
Thank you! Sending the notifications is definitely coming too :)
@madraven37
@madraven37 3 жыл бұрын
@@jfversluis looking forward to it.😍😍
@udaysuddhala3512
@udaysuddhala3512 3 жыл бұрын
Yeii.. 😍😍. Finally the wait is over !! 😁😁 As u promised !! It's really worthy waiting !! 😍😍 Thanks Gerald 🙏🙏🙏
@jfversluis
@jfversluis 3 жыл бұрын
Woohoo! Thanks!
@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
@juanjbarrionuevo
@juanjbarrionuevo 2 жыл бұрын
I can't thank you enough for this step-by-step tutorial! Great job!! Great tutorial!!
@jfversluis
@jfversluis 2 жыл бұрын
Thanks! Glad it is helpful!
@danm2092
@danm2092 2 ай бұрын
Great video, thanks so much!
@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!
@interpreter5844
@interpreter5844 2 жыл бұрын
Thanks for you🖤🖤
@jfversluis
@jfversluis 2 жыл бұрын
My pleasure!
@robertocruz231
@robertocruz231 3 жыл бұрын
Great tutorial, you are the best!
@jfversluis
@jfversluis 3 жыл бұрын
Thank you!
@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!
@usamaelhamed4324
@usamaelhamed4324 3 жыл бұрын
Thanks Gerald, every video is perfect and useful
@jfversluis
@jfversluis 3 жыл бұрын
Thank you Usama!
@josedonizeteoliveirajunior1744
@josedonizeteoliveirajunior1744 3 жыл бұрын
Perfect guy, I suffered from it a few days ago. Thanks
@jfversluis
@jfversluis 3 жыл бұрын
Hope this helps!
@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! 😄
@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!
@antract3610
@antract3610 2 жыл бұрын
Great video ! Can you do a tutorial for MAUI Push notifications using either FCM or Azure ?
@jfversluis
@jfversluis 2 жыл бұрын
That will probably come at some point, not sure when though!
@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 жыл бұрын
The video about sending push notifications is here: kzbin.info/www/bejne/jHqUqJqboN9okK8
@deaasaleh3613
@deaasaleh3613 3 жыл бұрын
Great video 💪 Thank you Jerald
@jfversluis
@jfversluis 3 жыл бұрын
Thank you!
@emmanueladebiyi2109
@emmanueladebiyi2109 3 жыл бұрын
Awesome stuff 💪🏽
@jfversluis
@jfversluis 3 жыл бұрын
Thanks Emmanuel!
@satyendra1313
@satyendra1313 2 жыл бұрын
Very good tutorial, Thanks dear...
@jfversluis
@jfversluis 2 жыл бұрын
Thanks for watching Satyendra!
@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 жыл бұрын
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
@hamzaduman4946
@hamzaduman4946 3 жыл бұрын
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 жыл бұрын
Make sure you call the method from the error in the MainActivity
@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 😁
@alessandrolanzoni9288
@alessandrolanzoni9288 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 :)
@zoyanoor7450
@zoyanoor7450 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.
@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 жыл бұрын
I don’t think that’s possible on Android? At least not all Android versions
@shakaibakhtar8764
@shakaibakhtar8764 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 жыл бұрын
Added it to the todo list, thanks!
@leosouza1520
@leosouza1520 Жыл бұрын
Hey Gerald, how about push notification in MAUI? It would be a great video!
@jfversluis
@jfversluis Жыл бұрын
Absolutely! It’s coming!
@andreyskripnikov4802
@andreyskripnikov4802 3 жыл бұрын
Thank you, very useful video🤝
@jfversluis
@jfversluis 3 жыл бұрын
Glad you think so!
@RaabStephan
@RaabStephan 3 жыл бұрын
Legend!
@jfversluis
@jfversluis 3 жыл бұрын
Wait for it.... dary!
@eddienoureddine7408
@eddienoureddine7408 3 жыл бұрын
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 жыл бұрын
@@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. KZbin 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 :)
@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 жыл бұрын
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 :)
@ChanoTSG
@ChanoTSG 2 жыл бұрын
i love so much xamarin forms
@jfversluis
@jfversluis 2 жыл бұрын
Me too!
@GellClan
@GellClan 3 жыл бұрын
Thx for a great Video again, yes Firebase Database would be also great
@jfversluis
@jfversluis 3 жыл бұрын
Noted! I'll see what I can do :)
@mo7amedh.m264
@mo7amedh.m264 3 жыл бұрын
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! :)
@SayyadHasan
@SayyadHasan 3 жыл бұрын
Awesome 👏🏻 👏🏻 👏🏻 can you please update push notifications for iOS too
@jfversluis
@jfversluis 3 жыл бұрын
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!
@frederikbrandt5281
@frederikbrandt5281 2 жыл бұрын
Good video, but I am missing the step for integrating notifications sent with an Azure notification hub
@jfversluis
@jfversluis 2 жыл бұрын
That's correct because this uses Firebase :) Send push notifications is here: kzbin.info/www/bejne/jHqUqJqboN9okK8 This is an alternative to Azure Notification Hub. I might do it for Azure still as well
@QuintonViljoen
@QuintonViljoen 2 жыл бұрын
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 жыл бұрын
I definitely want to do more with Shiny, but it might be for .NET MAUI though. Stay tuned!
@F0YF0YT0S
@F0YF0YT0S Жыл бұрын
Great tutorial! Excellent delivery! Would this work hit Maui Hybrid as well or we would face problems in that context?
@jfversluis
@jfversluis Жыл бұрын
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).
@josa951
@josa951 2 жыл бұрын
Great video
@jfversluis
@jfversluis 2 жыл бұрын
Thank you so much Marko!
@hdgmar1725
@hdgmar1725 2 жыл бұрын
excellent !!
@jfversluis
@jfversluis 2 жыл бұрын
Thank you! Push notifications in combination with .NET MAUI will definitely come!
@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
@emmanuelramos2967
@emmanuelramos2967 3 жыл бұрын
This is great, thanks
@jfversluis
@jfversluis 3 жыл бұрын
Thank you! Glad you think so!
@leonardo_4065
@leonardo_4065 3 жыл бұрын
could make a video of authentication with firebase and xamarin forms?. your videos are very good
@jfversluis
@jfversluis 3 жыл бұрын
Thanks! I will see if I can do that :)
@ismailzumrawi
@ismailzumrawi 2 жыл бұрын
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 2 жыл бұрын
There can be only one class marked as application. You’re going to need to combine those :)
@ismailzumrawi
@ismailzumrawi 2 жыл бұрын
@@jfversluis thanks , also token generated by OAuth(webapi). is different from token generator by xamarin forms how to make them same
@jfversluis
@jfversluis 2 жыл бұрын
Not sure what you mean… Oauth tokens are supposed to be different
@ismailzumrawi
@ismailzumrawi 2 жыл бұрын
@@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 2 жыл бұрын
@@jfversluis in your video you take tokens from the output window so how can I get it from code
@timblack4549
@timblack4549 2 жыл бұрын
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 :)
@r.gopalakrishnan6926
@r.gopalakrishnan6926 3 жыл бұрын
Very useful
@jfversluis
@jfversluis 3 жыл бұрын
Thanks!
@MohamedIT2008
@MohamedIT2008 3 жыл бұрын
is there anyway to see message when app in foreground --- very important >>> or tell me is there another way?
@jfversluis
@jfversluis 3 жыл бұрын
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
@Vuyiswamb
@Vuyiswamb 2 жыл бұрын
This is a beautiful example . i would like to know the following , if you have videos for it , i would like to know 1) Is Firebase Free , can we send unlimited number of notifications 2) The Token that we produce on Debug it get lost when the app is closed , on a release mode can i store this token on the database so that i sent a Notification to a specific User on the later stage 3) If a user has closed the app and its not in the background , will the Push notification show ? 4) How can i send a Push Notification on the app based on the User A and the Notification Shown only for User B (Token) Thank you for the Example
@jfversluis
@jfversluis 2 жыл бұрын
Thank you! 1. I think for push it's free, but check their docs 2. Yes, you can store it, but beware also in production it can be refreshed. Implement code to detect that and update the token in your database 3. It should show also in the background, yes 4. You probably want to view this one: kzbin.info/www/bejne/jHqUqJqboN9okK8
@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 😄
@abdallaouiayoub7236
@abdallaouiayoub7236 2 жыл бұрын
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.
@xxThemoritzxx
@xxThemoritzxx Жыл бұрын
Brilliant, any changes for MAUI? Is Windows working as well? Greetings
@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 😏 kzbin.info/www/bejne/jHqUqJqboN9okK8
@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! :)
@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
@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.
@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 :)
@YoUserExp
@YoUserExp 3 жыл бұрын
Hello. I am Manyofyou! You are welcome :) .
@jfversluis
@jfversluis 3 жыл бұрын
You are what? 😱
@stefano4993
@stefano4993 Жыл бұрын
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 Жыл бұрын
@@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); } }
@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?
@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.
@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?
@robertojrcantos1711
@robertojrcantos1711 3 жыл бұрын
Very informative Gerald. Is the FCM you used on this Vlog free?
@jfversluis
@jfversluis 3 жыл бұрын
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 жыл бұрын
@@jfversluis this is great🤩. I’ll try it today. Thank you very much
@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 жыл бұрын
Thank you Miguel! That one is one the list. Not sure how fast I will get to it :)
@anassnassim
@anassnassim 3 жыл бұрын
thank you you are the best
@jfversluis
@jfversluis 3 жыл бұрын
Well... I don't know about that :D But thank you!
@saicharan8376
@saicharan8376 3 жыл бұрын
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
@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
@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 жыл бұрын
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 жыл бұрын
@@jfversluis Thanks 😊, waiting for that.
@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.
@thiagooliveira4192
@thiagooliveira4192 3 жыл бұрын
Thanks!
@jfversluis
@jfversluis 3 жыл бұрын
Thank you for watching!
@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?
@shivamar123
@shivamar123 3 жыл бұрын
Please also explain How to send Image with text .
@jfversluis
@jfversluis 3 жыл бұрын
On the todo list!
@dreamhunter2895
@dreamhunter2895 2 жыл бұрын
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
@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!
@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.
@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!
@Dj_Soundwave
@Dj_Soundwave Жыл бұрын
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 Жыл бұрын
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
@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?
@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?
@jfversluis
@jfversluis 2 жыл бұрын
Sure use topics!
@shivaninaeck2524
@shivaninaeck2524 2 жыл бұрын
@@jfversluis Thank you.
@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!
@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
@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?
@MohamedIT2008
@MohamedIT2008 3 жыл бұрын
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 жыл бұрын
Video is coming on that :)
@sauravkumar2464
@sauravkumar2464 Жыл бұрын
If possible can you add a video for uwp as well?
@KostasKousinovalis
@KostasKousinovalis 3 жыл бұрын
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
@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
@ericvnh5745
@ericvnh5745 2 жыл бұрын
Hello ! what an amazing video ! finally a simply way to implement push notifications in a xamarin.forms project! It's working fine !! Is there a way to add an image in the notification (as KZbin for example) ? In firebase, when I test a sending message, I add an image URL in the form, but when the notification is received on the android device, the image is not present. Thank you in advance, and great job !! :)
@jfversluis
@jfversluis 2 жыл бұрын
Thanks so much! Glad it helped! I think if you provide an image in the right field it should show automatically.
@ericvnh5745
@ericvnh5745 2 жыл бұрын
@@jfversluis Thank you for your response ! I putted an URL of an image in the right field in the Firebase Cloud Messaging testing tool, but it doesn't appears in the received notification, however title and message are correctly displayed :) Could it be a specific parameter to add somewhere in manifest or in code ?
@jfversluis
@jfversluis 2 жыл бұрын
@@ericvnh5745 Maybe this plugin doesn't support it. Did you only try Android or also iOS?
@ericvnh5745
@ericvnh5745 2 жыл бұрын
@@jfversluis only Android for the moment
@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
@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?
Send Push Notifications with FCM using C# (Topics & Tokens)
21:14
Gerald Versluis
Рет қаралды 47 М.
Implement Push Notifications with Xamarin.Forms (iOS) and FCM
27:05
Gerald Versluis
Рет қаралды 27 М.
👨‍🔧📐
00:43
Kan Andrey
Рет қаралды 10 МЛН
Они так быстро убрались!
01:00
Аришнев
Рет қаралды 3 МЛН
Getting Started with Firebase Realtime Database and Xamarin.Forms
17:43
Free PDF Viewer Control for .NET MAUI - Show PDF Files with Ease!
14:59
How Do Push Notifications Work?
8:42
Gerald Versluis
Рет қаралды 21 М.
Adding Fingerprint Or Face Recognition To Your .NET MAUI App
18:00
Gerald Versluis
Рет қаралды 6 М.
Local Notification in Xamarin Forms
10:40
SPTutorials
Рет қаралды 15 М.
Dynamic App Themes in Xamarin.Forms - Light, Dark, & Custom Modes
25:13
James Montemagno
Рет қаралды 19 М.
Xamarin.Forms Shell Login Page Flow
14:07
James Montemagno
Рет қаралды 43 М.
How to Implement Firebase Push Notifications on Android (FCM + Backend)
1:06:31
Most overpowered way to build mobile apps?
8:33
Beyond Fireship
Рет қаралды 767 М.