Local Push Notifications in Xamarin.Forms

  Рет қаралды 27,760

Gerald Versluis

Gerald Versluis

Күн бұрын

Пікірлер: 308
@selimtv3428
@selimtv3428 3 жыл бұрын
I don't usually subscribe, but you deserve it. Thanks a lot for the video.
@jfversluis
@jfversluis 3 жыл бұрын
Thank you Selim! Appreciate that!
@joaquinsalas9749
@joaquinsalas9749 3 жыл бұрын
Thank you very much Gerald. Excellent, we would like the community to feel that a tutorial on a cloud push notification service would be interesting. Greetings. 😎
@jfversluis
@jfversluis 3 жыл бұрын
It's coming... kzbin.infoUgzMeNBCNkNakQf_Akh4AaABCQ
@jbladimir16
@jbladimir16 3 жыл бұрын
Thank you very much Gerald. I follow all your videos and you do it wonderfully, however I would like you to make an example of notifications in the background using firebase, onesignal or Azure Notification Hubs. Thank you very much in advance.
@sipepguru
@sipepguru 3 жыл бұрын
I am also waiting for this
@jfversluis
@jfversluis 3 жыл бұрын
It's coming... kzbin.infoUgzMeNBCNkNakQf_Akh4AaABCQ
@1405a
@1405a 2 жыл бұрын
Спасибо, мужик, ты мне очень сильно помог! Я бы мог написать это на английском языке, но знай, что ты помог русскому, поэтому твоя популярность охватывает широкие территории! Я подписался, буду следить за твоим каналом!
@jfversluis
@jfversluis 2 жыл бұрын
Thanks man! Had to use some Google translate magic but I got the message! Thanks a lot, appreciate it! :)
@АртемАбрамов-щ7й
@АртемАбрамов-щ7й Жыл бұрын
Hello Gerald! First of all thank you for your lesson, but I have a question: How to stack several notifications? For e.x: When i received new notification i want to stack them
@deaasaleh3613
@deaasaleh3613 3 жыл бұрын
Thank you Gerald Can you do a video about background services in xamarin forms?
@jfversluis
@jfversluis 3 жыл бұрын
What kind of background services do you need?
@jbladimir16
@jbladimir16 3 жыл бұрын
@@jfversluis firebase, onesignal or Azure Notification Hubs
@MiguelPrieto
@MiguelPrieto 3 жыл бұрын
Yes I agree, Notification integrated with Firebase please
@deaasaleh3613
@deaasaleh3613 3 жыл бұрын
@@jfversluis even if the user close my app i want to do some schedule things like getting data or updates from a server and showing notifications about it or reminding the user to do some things in selected date and time
@xtxmidnightxtx1784
@xtxmidnightxtx1784 3 жыл бұрын
Thanks for all the videos you make!
@jfversluis
@jfversluis 3 жыл бұрын
Appreciate it! And you thank you for watching them all! You did watch them all, didn’t you? 👀
@xtxmidnightxtx1784
@xtxmidnightxtx1784 3 жыл бұрын
@@jfversluis I actually only started watching recently after introducing myself to Xamarin Forms a few months ago. I'd say I've watched enough to stay *notified* 😀
@Arcanisize
@Arcanisize 3 жыл бұрын
This topic is needed
@jfversluis
@jfversluis 3 жыл бұрын
Now it’s here! 😄
@olegboguslawski
@olegboguslawski 3 жыл бұрын
Cool! Thanks! Can you make a vid how to implement a background service which would send these notifications then? :)
@jfversluis
@jfversluis 3 жыл бұрын
That will only work on Android, for iOS it won't fly. So maybe another approach would be to do something when the app is launched and then (re)schedule the next notifications?
@twopeaksendurance
@twopeaksendurance 3 жыл бұрын
@@jfversluis Would it be possible for iOS to connect to a SignalR Hub on a .NET Server and then trigger the popups on SignalR Messages locally? For Android this works well.
@xaxa4386
@xaxa4386 3 жыл бұрын
Exactly what I am searching for! one hour ago!
@jfversluis
@jfversluis 3 жыл бұрын
Hope it still helps! 😄
@xaxa4386
@xaxa4386 3 жыл бұрын
@@jfversluis you vids always help, Thank you for your good service sir!
@usamaelhamed4324
@usamaelhamed4324 3 жыл бұрын
Thanks so much Gerald, I was looking for something like this
@jfversluis
@jfversluis 3 жыл бұрын
Glad to be of service!
@jolaybib504
@jolaybib504 3 жыл бұрын
Thank you so much , your explaining is tooo clear
@jfversluis
@jfversluis 3 жыл бұрын
Thank you! That is wonderful to hear!
@jolaybib504
@jolaybib504 3 жыл бұрын
Can i ask you ? In NotificationRequest doesn't have definition for Notifytime any more , so i cannot set a time to launch a notification , what i can do plz ?
@jfversluis
@jfversluis 3 жыл бұрын
@@jolaybib504 are you sure? This video is very recent. It would be a big coincidence if the plug-in was updated just now
@jolaybib504
@jolaybib504 3 жыл бұрын
Yes i'm sure , maybe because the new version of plugin was changed . Thanks .
@jfversluis
@jfversluis 3 жыл бұрын
Huh! You’re right. That’s funny. Ok it looks like you now need to use the Schedule property for that :)
@AldairOH
@AldairOH 3 жыл бұрын
Thanks again for your contributions !
@jfversluis
@jfversluis 3 жыл бұрын
Thank you!
@kentr6649
@kentr6649 3 жыл бұрын
Hi Gerald, I'm running into some issues implementing local notifications, it seems that even if I schedule the notification well in advance, if the user closes the app the notification will not work. Is there an implementation or approach that can cover this? Thanks Edit: This may be an Android exclusive issue.
@jfversluis
@jfversluis 3 жыл бұрын
So it doesn't trigger, also not once, when you really close the app? If you think it's a bug you probably want to open an issue on the repository for this plugin :)
@crazytv6887
@crazytv6887 2 жыл бұрын
Small icon in notification in top rigth corner is gray as in your example in 18:50. Can it be fixed on Android?
@jfversluis
@jfversluis 2 жыл бұрын
Absolutely, there is an option to configure the icon
@thanasissideridis2801
@thanasissideridis2801 2 жыл бұрын
Thank you for all your great guidance in all matters of Xamarin. You make a lot of peaple lifes easier! I was wondering if there is a way to add 'Action" buttons to the notification and act accordingly. In my case I just want to edit a notification that acts as a foreground service and edit it so that i show some usefull information and add some action buttons. Again... you are a lifesaver!
@jfversluis
@jfversluis 2 жыл бұрын
Looks like you can with version 7 and up: github.com/thudugala/Plugin.LocalNotification/wiki/Notification-with-Action#xamarinforms
@stryder12345
@stryder12345 2 жыл бұрын
Guys if you have error NotificationCenter.CreateNotificationChannel(); doesn't exist in current context change NotificationCenter to LocalNotificationCenter.CreateNotificationChannel(); In video version of this plugin 5.2 actual version is 10.01. It was changed. Or just downgrade version
@jfversluis
@jfversluis 2 жыл бұрын
Oh that’s a great find! Thanks for sharing!
@stryder12345
@stryder12345 2 жыл бұрын
@@jfversluis 😀
@hullcan
@hullcan 3 жыл бұрын
Thank You Gerald! Subscribed :)
@jfversluis
@jfversluis 3 жыл бұрын
I should be thanking you then Richard!
@lilianesoliman7268
@lilianesoliman7268 2 жыл бұрын
Very very Nice material and tutorial as usual, but have a question how to make notification displayed on the top of the screen when received in android as in IOS, thanks again
@jfversluis
@jfversluis 2 жыл бұрын
If your app is not running in the foreground it should show up automatically. If your app is running then there is an event that is triggered and you will need to implement code to show something yourself! This can be done by displaying an alert or maybe a toast or snackbar.
@crazytv6887
@crazytv6887 2 жыл бұрын
One more question. In notification this small image in top left corner doesn't appear. How to fix it? Please let me know
@jfversluis
@jfversluis 2 жыл бұрын
Make sure the icon is in your project, has the right format and you added it to the notification configuration.
@madraven37
@madraven37 3 жыл бұрын
Thank you, just what I needed for my App.
@jfversluis
@jfversluis 3 жыл бұрын
Hope you can make it work for your needs!
@madraven37
@madraven37 3 жыл бұрын
@@jfversluis Hope I can make it work on background, my app requires the expiration date and the date will trigger the notification. Any advice on this??
@jfversluis
@jfversluis 3 жыл бұрын
Not sure what advice you’re looking for; as shown in the video you can set the notification to any date and time so you can link that to the date you need and it will show up nicely :)
@madraven37
@madraven37 3 жыл бұрын
@@jfversluis Sorry for the confusion, I think I will have to work on the code first, then I'll get back here..
@jfversluis
@jfversluis 3 жыл бұрын
@@madraven37 let me know!
@danielotoo4177
@danielotoo4177 3 жыл бұрын
Does the tapped event work with xamarin forms shell?
@jfversluis
@jfversluis 3 жыл бұрын
I would think so yes
@danielotoo4177
@danielotoo4177 3 жыл бұрын
@@jfversluis I seem to have some error Everytime I use it.
@acc6540
@acc6540 3 жыл бұрын
so simple very well With fluent expression Thankful
@jfversluis
@jfversluis 3 жыл бұрын
Thanks Hassan! Glad you liked it!
@yevheniikapitonov9921
@yevheniikapitonov9921 2 жыл бұрын
Thanks for video, i found it much useful for me)
@jfversluis
@jfversluis 2 жыл бұрын
Glad to hear that! Thank you so much!
@Edgar-tz9nb
@Edgar-tz9nb 2 жыл бұрын
Hi Gerald, thanks much for video, I wonder can I use it in dotnet MAUI? if not what is the easier way to use notifications in MAUI
@jfversluis
@jfversluis 2 жыл бұрын
I don't think there is any plugin that does this right now, but you would sure be able to implement this using platform code :)
@TvCartago
@TvCartago 2 жыл бұрын
Thank you very much!!! please show how to add/configure sound file in notification... Greetings
@jfversluis
@jfversluis 2 жыл бұрын
There is a sound property in there that you can set. Add the sound file to your app, set that property and that should be it
@suhas007007
@suhas007007 3 жыл бұрын
Hi Gerald, How to make local notification work when i have killed or terminated my app? Is there any way other than FCM notification to implement above scenario ? Your help is highly appreciable. Thanks in advance
@jfversluis
@jfversluis 3 жыл бұрын
Seems this is a current issue with the library: github.com/thudugala/Plugin.LocalNotification/issues/184
@jfversluis
@jfversluis 3 жыл бұрын
Implementing push notifications with FCM can be found here: kzbin.info/www/bejne/baiVomV6a9KFbck
@pavelkoleckar3586
@pavelkoleckar3586 3 жыл бұрын
Is there a way how to change returning datatype of the Current_NotificationTapped event created in time 14:55? It has void defaultly.
@jfversluis
@jfversluis 3 жыл бұрын
I'm afraid you can't, what is it that you're trying to do? :)
@pavelkoleckar3586
@pavelkoleckar3586 3 жыл бұрын
@@jfversluis I already solved it by calling another method from the Current_NotificationTapped method :) I asked also on Stack stackoverflow.com/questions/67874286/how-to-return-a-value-from-current-notificationtapped-event-local-push-notifica If you want, you can write an answer there saying that is not possible :-D
@jfversluis
@jfversluis 3 жыл бұрын
Glad you fixed it! I will see about that answer tomorrow, thanks! 😄
@winningsih8229
@winningsih8229 2 жыл бұрын
Thank you very much Gerald, its a great video, i used it (with last update) and work great. But i want to know if a user submit approval and then by system it has to send notification to the bos for example. can we use this plugin too?
@jfversluis
@jfversluis 2 жыл бұрын
I’m not sure if I understand what you mean. But you can trigger code whenever someone tapped on this notification so I think you can do what you want?
@winningsih8229
@winningsih8229 2 жыл бұрын
@@jfversluis Thanks for your reply. Let me use an example to make it clear. For example user A entered a changes to Customer Credit Limit from 1000 to 1500 and it needs an approval from his supervisor(user B). After he submit it, then the system will send the notification. so how will the notification appears on user B phone?
@GentiGace
@GentiGace 3 жыл бұрын
Hi Gerald, thank you for your explanation of this plugin but I want to ask how can we use it with mvvm. Can you make another video dedicated for mvvm?
@jfversluis
@jfversluis 3 жыл бұрын
I don’t see why this can’t be used with MVVM. Instead of doing it with a button just put it in the Command you have in mind :)
@miaadib6146
@miaadib6146 3 жыл бұрын
thank you so much for this kind of video
@jfversluis
@jfversluis 3 жыл бұрын
My pleasure! Just glad you find it useful!
@miaadib6146
@miaadib6146 3 жыл бұрын
@@jfversluis bro .. just i have small problem .. i cant find NotifyTime in this list what can i do plz?
@jfversluis
@jfversluis 3 жыл бұрын
I think that moved into another property in a newer version that was released after this video :)
@Husdajukies
@Husdajukies 3 жыл бұрын
Oh and btw, is there any way to stop repeating the notification when it reaches a certain date? Example: I want to repeat a notification daily from 05/06/2021 to 08/06/2021 how can I do that?
@madraven37
@madraven37 3 жыл бұрын
I think "Cancel" will do the trick, you just need the Id that you set when you scheduled the notification.
@Husdajukies
@Husdajukies 3 жыл бұрын
@@madraven37 oh I see, I will try that thanks!
@jfversluis
@jfversluis 3 жыл бұрын
Thanks for the help @Mad Ox! Let me know if you can figure it out :)
@sheikhshuaib8451
@sheikhshuaib8451 3 жыл бұрын
hi sir, how can we add sound and image to this notification
@jamalfazeli9127
@jamalfazeli9127 2 жыл бұрын
Please make a video about how to use notification in MAUI.
@jfversluis
@jfversluis 2 жыл бұрын
Will come, but might take a while
@federicopalanca5366
@federicopalanca5366 3 жыл бұрын
Thanks, really well explained! I don't find anything to send silent notification with only vibration (no sound)... Do you have any advice to help me?
@jfversluis
@jfversluis 3 жыл бұрын
Hm to be honest I’m not sure if that’s possible. On iOS at least you only get vibration when you send sound and the user set their device to silent. So it’s the users choice how to get notified.
@federicopalanca5366
@federicopalanca5366 3 жыл бұрын
​@@jfversluis I tried to add a custom sound but it doesn't work, notification always have default ringtone... Have you try to custom notification sound?
@mroli451
@mroli451 Жыл бұрын
Great video!
@jfversluis
@jfversluis Жыл бұрын
Dank je wel!
@orijueladave5497
@orijueladave5497 2 жыл бұрын
Can you create a tutorial about custom notification. Like if you want to add a button on the notification to dismiss, reply and snooze. Playing audio like alarm clock when notification is triggered? Please
@jfversluis
@jfversluis 2 жыл бұрын
Looks like that is something you can do with version 7+: github.com/thudugala/Plugin.LocalNotification/wiki/Notification-with-Action#xamarinforms
@adam_adam203
@adam_adam203 2 жыл бұрын
Hi, great tutorial. Could you help me with my problem? In my case when app is closed and app is not in use, notifications don't appear until user starts using the phone. Is there any solution to this problem or idea how to fix it?
@jfversluis
@jfversluis 2 жыл бұрын
Check the plug-in repo!
@luisamre1368
@luisamre1368 2 жыл бұрын
Hey Gerald, I was wondering if there is a way to show a notification in background or even if the app was totally closed ?
@jfversluis
@jfversluis 2 жыл бұрын
Should be possible with this!
@cissemy
@cissemy 3 жыл бұрын
Thanks Ca you make one about FCM push notification ?
@jfversluis
@jfversluis 3 жыл бұрын
It's coming... kzbin.infoUgzMeNBCNkNakQf_Akh4AaABCQ
@cissemy
@cissemy 3 жыл бұрын
@@jfversluis Thanks
@crazytv6887
@crazytv6887 2 жыл бұрын
can i check if some of notifications are still scheduled? i need it in my if statement
@jfversluis
@jfversluis 2 жыл бұрын
Hm not sure to be honest. If you have the ID when you schedule if you can at least cancel it and put in a new one, maybe that helps?
@ahmettalhasahin6979
@ahmettalhasahin6979 3 жыл бұрын
I have a question. When I send notification twice, only appering one of them. IDK why , How to solve it ?
@jfversluis
@jfversluis 3 жыл бұрын
Do you specify a different ID?
@Husdajukies
@Husdajukies 3 жыл бұрын
thank you! very helpful and explained well!
@jfversluis
@jfversluis 3 жыл бұрын
Glad it was helpful and thank you for the kind words!
@christianmukeba4175
@christianmukeba4175 3 жыл бұрын
Hi Gerald, First I thank you for this amazing video. Question: I am showing the Notification from a Print Service but my notifications are only showing when the app is open, whenever I close the app the notification does not show anymore. How can I overcome this behavior.
@jfversluis
@jfversluis 3 жыл бұрын
Thank you Christian! Have you checked the library repo? Maybe there is a bug there that causes this
@cincior3051
@cincior3051 2 жыл бұрын
Pls help me. I didn't understand your tip in last comment. Can you describe what should I do?
@cincior3051
@cincior3051 2 жыл бұрын
i can add that my data is writing into file after I change page in my app. Can it disturb my events when i change pages?
@claudiofonseca322
@claudiofonseca322 2 жыл бұрын
Hello, I'm using this functionality to notify alarm notes in my app, imagine if I delete a note and I wanted to delete the push notification as well, how do I implement that?
@jfversluis
@jfversluis 2 жыл бұрын
I think you need to update the notification with the same I’d but set the notification date in the past
@jsnsoft_official
@jsnsoft_official 3 жыл бұрын
Nice and cool ! I have one only one doubt. You wrote notification tapped in Main Page and your firing notificaton also in main page. But the user has not opend the app at all. In this case where shall write the notification tapped event?
@jsnsoft_official
@jsnsoft_official 3 жыл бұрын
Sorry, got it. I wrote on appshell.xaml.cs
@jfversluis
@jfversluis 3 жыл бұрын
Glad you found it!
@micriteo
@micriteo 2 жыл бұрын
Is there a way where you press the notification and it redirects you to a specific page and not resumes the app ?
@jfversluis
@jfversluis 2 жыл бұрын
Yep, there is absolutely a way for that!
@ccchiao7314
@ccchiao7314 2 жыл бұрын
thank you so much this video is really helpful~~😃
@jfversluis
@jfversluis 2 жыл бұрын
Great! Thank you for watching!
@aukiboy
@aukiboy 2 жыл бұрын
Any way of changing the notification icon? I've googled a bit but can't find anything. Sample code isn't helping me alot either.
@jfversluis
@jfversluis 2 жыл бұрын
There are Android specific setting in the Android property on the request, that has some icon options. On iOS you can’t change the icon.
@CrystalFocus
@CrystalFocus 3 жыл бұрын
awesome stuff and nicely explained. dank!
@jfversluis
@jfversluis 3 жыл бұрын
Glad you liked it! Thanks for letting me know!
@ahmettalhasahin6979
@ahmettalhasahin6979 3 жыл бұрын
Hi I have some issue when I get Notification, If there is existing Notification , second notification doesn't appering on phone but phone is vibrating, how to show both ? Thanks
@jfversluis
@jfversluis 3 жыл бұрын
Specify a different id probably:)
@makatozi
@makatozi 3 жыл бұрын
Great presentation! Just one question and it is slightly off topic - but how do you show the app icon on the android emulator home screen (to check the badge change)?
@jfversluis
@jfversluis 3 жыл бұрын
Not sure what you're asking? You mean the little round badge on the app icon in the home screen?
@makatozi
@makatozi 3 жыл бұрын
@@jfversluis I mean the app icon itself :). The home screen on my emulator doesn't contain my app icon, and I was wondering did you have to set that up?
@jfversluis
@jfversluis 3 жыл бұрын
The icon should always be there, it doesn’t show up on the Home Screen automatically, swipe up to see all the apps on the emulator and it’s should be there
@jsnsoft_official
@jsnsoft_official 3 жыл бұрын
I got another problem. If I send multiple notifications, and the previous notification I didn't tapped, but the following notifications are not adding up just replacing each time. Any help?
@jfversluis
@jfversluis 3 жыл бұрын
Then you probably need to use a different id to make them unique :)
@noahdannaoui6331
@noahdannaoui6331 3 жыл бұрын
Hi Gerald, I was wondering if there is a way for you to put data into the notification itself? For example, I want the user to be able to select a date and time and what the user has selected get setup in the notification. great video!
@jfversluis
@jfversluis 3 жыл бұрын
Sure, capture all that data first and schedule the notification after that and add that to the message :)
@noahdannaoui6331
@noahdannaoui6331 3 жыл бұрын
@@jfversluis thanks so much!
@preetikashyap9254
@preetikashyap9254 3 жыл бұрын
can you tell me how to set timeout for this pop
@jfversluis
@jfversluis 3 жыл бұрын
Not sure what you mean by this?
@jitendrajadav9110
@jitendrajadav9110 Жыл бұрын
Notification sounds is not working in MAUI is there any suggestion?
@jfversluis
@jfversluis Жыл бұрын
Check and potentially report on the plugin repo
@arabicdotnet1552
@arabicdotnet1552 3 жыл бұрын
when i put the "using Plugin.LocalNotification" in main activity ... send me error in the definition, knowing that I installed the library before that !! where is the problem ?
@jfversluis
@jfversluis 3 жыл бұрын
Double check it’s really installed :) if it is the namespace should be there
@PradeepKumar-ej3nn
@PradeepKumar-ej3nn 2 жыл бұрын
How to Dynamically Update the badge count .. unable to update the badge count
@veiga757
@veiga757 3 жыл бұрын
Hi Gerald. It's possible to pop-up the notification or I missed something? When I receive a notification it doesn't pop up.
@jfversluis
@jfversluis 3 жыл бұрын
Not sure what you mean by pop up? When you are inside the app or when it's closed?
@veiga757
@veiga757 3 жыл бұрын
@@jfversluis inside and closed. I receive the notification but it's doesn't pops-up. When I say "pops-up" it means the pre-visualization of the notification at the top of the screen and then dissapears.
@cincior3051
@cincior3051 2 жыл бұрын
Hello. In taped event data like title or retruning data doesnt work. How to fix that?
@jfversluis
@jfversluis 2 жыл бұрын
Based on "doesn't work" it's most of the time impossible to say something useful. Sorry 😅
@crazytv6887
@crazytv6887 2 жыл бұрын
can i send notification while app is closed after scheduled it?
@jfversluis
@jfversluis 2 жыл бұрын
Should be, yea
@nimaaminz2378
@nimaaminz2378 3 жыл бұрын
Thank you so much ,, but I have a problem , how to enable notification banner ? cause the notification only show in status bar and its doesn't show as banner like every Applications . . .
@jfversluis
@jfversluis 3 жыл бұрын
Check out my video on remote push notifications, I think that is applicable here too: kzbin.info/www/bejne/baiVomV6a9KFbck
@nimaaminz2378
@nimaaminz2378 3 жыл бұрын
@@jfversluis Thanks Bro it helped ! , You are my Spiderman :-D
@jfversluis
@jfversluis 3 жыл бұрын
@@nimaaminz2378 Haha thank you! :D
@mustafaahmed174
@mustafaahmed174 3 жыл бұрын
Thank you, very helpful But notification bar not show up in android ? I don't know how to set notification chancel?
@jfversluis
@jfversluis 3 жыл бұрын
Have a look at this: github.com/thudugala/Plugin.LocalNotification#with-platform-specific-options You probably want to set the Priority to high
@mustafaahmed174
@mustafaahmed174 3 жыл бұрын
@@jfversluis yes it was the Priority, thanks a lot
@jfversluis
@jfversluis 3 жыл бұрын
Awesome! Glad I was able to help
@Leagueofwarlockyy
@Leagueofwarlockyy 2 жыл бұрын
Hey, can you show how to make a notification scheduled for a certain time? I want to make notifications which will trigger at both 3 PM and 6 PM everyday, but i am not sure how to do it with syntax.
@jfversluis
@jfversluis 2 жыл бұрын
These is a schedule property I think that you can use
@crazytv6887
@crazytv6887 2 жыл бұрын
@@jfversluis where can i find information about how to type it excatly
@jfversluis
@jfversluis 2 жыл бұрын
There was a comment yesterday from someone who posted the code on how to do it exactly
@crazytv6887
@crazytv6887 2 жыл бұрын
@@jfversluis below this film? can't see it
@jfversluis
@jfversluis 2 жыл бұрын
kzbin.info/www/bejne/Y3_NkIeIhdGrY5o&lc=Ugx__EJ--qJHvZFqnfh4AaABAg
@robertojrcantos1711
@robertojrcantos1711 3 жыл бұрын
This is great Gerald, very help for us Xamarin Developer. Is the Plugin NuGet available for UWP?
@jfversluis
@jfversluis 3 жыл бұрын
Thank you! This one only supports iOS and Android
@robertojrcantos1711
@robertojrcantos1711 3 жыл бұрын
@@jfversluis Is it ok to ask when will be the next release of XCT update to resolve the problem in AvatarView image source for the imagestream type? I want to use the Popup but I can’t because the need for the AvatarView in my app is much important that stack me for the XCT version 1.0.3. I hope and pray you can help me. Thank you
@jfversluis
@jfversluis 3 жыл бұрын
@@robertojrcantos1711 did you try the 1.2-pre1 version? I think there was a fix for that :)
@robertojrcantos1711
@robertojrcantos1711 3 жыл бұрын
@@jfversluis thank you very much for a big helping hand. I will try your advise within today. Good morning ☀️😃
@robertojrcantos1711
@robertojrcantos1711 3 жыл бұрын
Gerald I tried XCT 1.2.0 pre1 and still AvatarView failed to display image for imagestream type source. I felt heartbroken 😔
@stryder12345
@stryder12345 2 жыл бұрын
NotificationCenter.CreateNotificationChannel(); doesn't exist in current context , could you give an advice? Xamarin Forms package ver 5+
@jfversluis
@jfversluis 2 жыл бұрын
You will have to install the plugin and add the right using statement
@stryder12345
@stryder12345 2 жыл бұрын
@@jfversluis i installed plugin from video , bit it still doesn't exist :c
@dummyaccount9578
@dummyaccount9578 2 жыл бұрын
Hi, Is it possible to show the banner when the app is running on screen on iOS? because on Android it can
@jfversluis
@jfversluis 2 жыл бұрын
Don’t think so :)
@AbhishekSingh-vp2qi
@AbhishekSingh-vp2qi 2 жыл бұрын
Hello sir, on scheduled time of notification i need to call a function/method, so how do i know that notification is sent so i can call my method.
@jfversluis
@jfversluis 2 жыл бұрын
Sorry I'm not sure what you mean exactly
@AbhishekSingh-vp2qi
@AbhishekSingh-vp2qi 2 жыл бұрын
@@jfversluis sir actually I want to call a method when local notification get receive. So I want to know where I have to call my method.
@ahmettalhasahin6979
@ahmettalhasahin6979 3 жыл бұрын
Thank you so much!! man
@jfversluis
@jfversluis 3 жыл бұрын
My pleasure!
@crazytv6887
@crazytv6887 2 жыл бұрын
my notification doesn't make any sound. Any idea how to fix it?
@jfversluis
@jfversluis 2 жыл бұрын
Check the plug-in docs/sample :)
@crazytv6887
@crazytv6887 2 жыл бұрын
@@jfversluis is there any more detailed docs than on main page on github? cause i cant see much information about this plugin. I am beginer sorry
@crazytv6887
@crazytv6887 2 жыл бұрын
i think i know whats wrong. My app doesnt have permission to use sound alert of notification. How can give privilage to app?
@khaledbakeer9215
@khaledbakeer9215 3 жыл бұрын
Thank you and it worked perfectly, but if I set the notification delay to (+24 hours) it did not work on Android. iOS worked without problems. The issue is in Android for a long time delay. Do you have any suggestions to fix that?
@jfversluis
@jfversluis 3 жыл бұрын
Hm interesting, as far as I know it should just work. Did you check the repo of the plugin if there is any info about that?
@khaledbakeer9215
@khaledbakeer9215 3 жыл бұрын
@@jfversluis I have just created a new issue about that. Do you thing it could be a problem from android side?
@ОлегІвасько-б1й
@ОлегІвасько-б1й 2 жыл бұрын
@@khaledbakeer9215 I have the same problem . When I delay the notification for 10 minutes it doesn't work . Is it problem with device or you have found the solution?
@sheikhshuaib8451
@sheikhshuaib8451 3 жыл бұрын
please show how to add sound file in this notification package
@jfversluis
@jfversluis 3 жыл бұрын
Added to the list of videos to make, thanks!
@sheikhshuaib8451
@sheikhshuaib8451 3 жыл бұрын
@@jfversluis please make it as alarm type app
@jfversluis
@jfversluis 3 жыл бұрын
I’m not going to build an app for you ;)
@Mielesplayz
@Mielesplayz 2 жыл бұрын
Is it possible to add choices inside the messages, like in Whatsapp where you can tap the "Reply" button
@jfversluis
@jfversluis 2 жыл бұрын
Not sure if you can do that for local notifications. But if it's possible on the platform then sure. Although probably not through this package.
@Mielesplayz
@Mielesplayz 2 жыл бұрын
@@jfversluis alright, thanks for the info!
@ckbseng
@ckbseng 2 жыл бұрын
manage to make it on iOS, but i realised no notification sound, even i declared PlayForegroundSound, any cue on this?
@jfversluis
@jfversluis 2 жыл бұрын
Make sure to request sound as part of the notification permission and that the silent switch is off
@cincior3051
@cincior3051 2 жыл бұрын
My notificationReceived and notificationTapped event are called more than 1 time. They write returning data (in my example) more than 1 time into file. I tested writing into file on other function and it worked properly. Something is wrong with this event.
@jfversluis
@jfversluis 2 жыл бұрын
Make sure to report it on the repository!
@cincior3051
@cincior3051 2 жыл бұрын
@@jfversluis What do you mean exactly?
@veiga757
@veiga757 3 жыл бұрын
Hello Gerald. Awesome work as always. Every time it's triggered the notification I get this error: Invalid notification (no valid small icon): Notification(channel=Plugin.LocalNotification.GENERAL pri=0 contentView=null vibrate=null sound=null defaults=0x0 flags=0x10 color=0x00000000 vis=PRIVATE). Where do I set the icon? Thanks in advance.
@veiga757
@veiga757 3 жыл бұрын
I'm using Plugin.LocalNotification 8.0.1 v. by the way.
@jfversluis
@jfversluis 3 жыл бұрын
Thanks! In regard to the error... No clue sorry :D You might want to check on the repo if there is an issue describing this or open one to check what is the matter :)
@veiga757
@veiga757 3 жыл бұрын
@@jfversluis No problem! I solved the problem. I missed something important.. but it's not related to the plugin. The problem was in the AndroidManifest..
@jfversluis
@jfversluis 3 жыл бұрын
Ah good! Glad you figured it out! 😄
@tangengteng
@tangengteng 2 жыл бұрын
@@veiga757 Hi do you solved this? I had the same problem :(
@johnifegwu9144
@johnifegwu9144 3 жыл бұрын
Hi Gerald, the App icon shows +999 when notification is pushed, is there not a way to change this to the actual figure???
@jfversluis
@jfversluis 3 жыл бұрын
It does?! On Android or iOS? What is the code you are using?
@johnifegwu9144
@johnifegwu9144 3 жыл бұрын
@@jfversluis On Android, I've tested it on Android 8.0 and 11.0 still getting the same result. I am using Plugin version 9.0.0
@jfversluis
@jfversluis 3 жыл бұрын
I haven’t seen that and without your code it’s impossible to say what might be wrong. Maybe ask the author of the plug-in?
@Uberhexation
@Uberhexation 2 жыл бұрын
Can you make a video on how to do this in Maui?
@jfversluis
@jfversluis 2 жыл бұрын
I think the plugin has .NET MAUI support so it's probably literally the same :D But I will see if I can make an updated video.
@Uberhexation
@Uberhexation 2 жыл бұрын
@@jfversluis it's sort of working now. But I don't have notifyTime, I got schedule but I can't use DateTime like you did. I need to do more research.
@ОлегІвасько-б1й
@ОлегІвасько-б1й 2 жыл бұрын
can we send multiple notifications at once? if you send the second notifications, the first one disappears
@jfversluis
@jfversluis 2 жыл бұрын
Make sure to set a different id for each
@ОлегІвасько-б1й
@ОлегІвасько-б1й 2 жыл бұрын
@@jfversluis oh, yea , thank you . I spent a lot of time to solve this problem , but the solution was so easy
@jfversluis
@jfversluis 2 жыл бұрын
@@ОлегІвасько-б1й Haha no worries, glad I could help!
@olatunjigabriel2707
@olatunjigabriel2707 3 жыл бұрын
This is great video but how can i create notification for social media app like facebook, based on user likes or activities carried out on the app like, new message, new friends, friend requests and the likes thanks in advance
@jfversluis
@jfversluis 3 жыл бұрын
Thank you! The implementation is up to you. You should consider each of the things you mention here as an action. Whenever that action happens, you should figure out who you want to notify. So basically all these actions probably have some kind of action on a database. Whenever that database action happens, query the users that are associated, have their tokens and send a notification :)
@ДенисБелоглазов-ъ6х
@ДенисБелоглазов-ъ6х 2 жыл бұрын
Привет! Автор дает хорошие материалы, смотрю не первую фичу уже. Рекомендую.
@jfversluis
@jfversluis 2 жыл бұрын
Thank you!
@jamalfazeli9127
@jamalfazeli9127 3 жыл бұрын
Thanks so mush (: I looking for this things
@jfversluis
@jfversluis 3 жыл бұрын
Now you have it! Let me know if you have any questions :)
@kalixthuska8846
@kalixthuska8846 3 жыл бұрын
Thank you!
@jfversluis
@jfversluis 3 жыл бұрын
You’re welcome!
@makavanavishal
@makavanavishal 3 жыл бұрын
Thank You So Much.
@jfversluis
@jfversluis 3 жыл бұрын
My pleasure! Hope it’s useful!
@ДанилСтрученков
@ДанилСтрученков 2 жыл бұрын
I watched your video, it is very informative and simple, but I did not find the grouping of notifications
@jfversluis
@jfversluis 2 жыл бұрын
Thanks! What kind of grouping are you looking for?
@anandshindey
@anandshindey 3 жыл бұрын
I get a cannot use package error message as my Xamarin project uses .net standard 2.0. Any help on this issue?
@jfversluis
@jfversluis 3 жыл бұрын
What help do you need? :) you either need to find another plug-in that is compatible with your project or make your project compatible with this plug-in
@anandshindey
@anandshindey 3 жыл бұрын
@@jfversluis I was not sure I could upgrade to 2.1. Thanks, I will do that.
@jfversluis
@jfversluis 3 жыл бұрын
You should be able to but I don’t know your project so it’s impossible to tell :) hope it works!
@anandshindey
@anandshindey 3 жыл бұрын
@@jfversluis it worked, thanks
@anandshindey
@anandshindey 3 жыл бұрын
How do I get this as a background task/service? Any pointers/links
@anandshindey
@anandshindey 3 жыл бұрын
How do I assign an IconName to Android options?
@jfversluis
@jfversluis 3 жыл бұрын
You should be able to simply set it like here: github.com/thudugala/Plugin.LocalNotification/blob/master/Sample/NuGet/LocalNotification.Sample/MainPage.xaml.cs#L44 Is it not working for you?
@anandshindey
@anandshindey 3 жыл бұрын
@@jfversluis no, it does not work. Also I did run the sample as well. No icon on notification.
@jfversluis
@jfversluis 3 жыл бұрын
Report it on that same repo, might be a bug then :)
@kuyaian7090
@kuyaian7090 3 жыл бұрын
How do you add sound?
@jfversluis
@jfversluis 3 жыл бұрын
On Android?
@kuyaian7090
@kuyaian7090 3 жыл бұрын
@@jfversluis yesplesae
@kuyaian7090
@kuyaian7090 3 жыл бұрын
@@jfversluis ive been searching for it for an hour
@jfversluis
@jfversluis 3 жыл бұрын
I think that is something you should do with that channel I mentioned
@kuyaian7090
@kuyaian7090 3 жыл бұрын
@@jfversluis new Plugin.LocalNotification.Platform.Droid.NotificationChannelRequest { Sound = Resource.Raw..ToString() }); did that but its not working
@phamthanhduong74
@phamthanhduong74 3 жыл бұрын
messages don't show , just in the background, i need show it foreground
@jfversluis
@jfversluis 3 жыл бұрын
Seems there is an issue opened for it: github.com/thudugala/Plugin.LocalNotification/issues/184
@AMIRKHAN-dm2fm
@AMIRKHAN-dm2fm 3 жыл бұрын
Oh Great really helpful
@jfversluis
@jfversluis 3 жыл бұрын
Hope it is!
@haveknowledgeindia
@haveknowledgeindia 3 жыл бұрын
nice teacher
@jfversluis
@jfversluis 3 жыл бұрын
Thank you! 😃
@VictorHugo-jr7qu
@VictorHugo-jr7qu 3 жыл бұрын
Thanks Gerald for sharing this video. Do you know how to clear the badge from the iOS app icon once you get notification and open the iOS app? Testing this comment in youtube hopefully spam does not caugh it :crossingfingers: Note: On android the badge gets removed automatically.
@jfversluis
@jfversluis 3 жыл бұрын
You can set: UIApplication.SharedApplication.ApplicationIconBadgeNumber = 0; You will have to do this in iOS specific code though
@VictorHugo-jr7qu
@VictorHugo-jr7qu 3 жыл бұрын
@@jfversluis Thank you! it worked wonderful! Thanks again
@jfversluis
@jfversluis 3 жыл бұрын
Great! Thanks for letting me know!
@waldosoto4353
@waldosoto4353 2 жыл бұрын
Hola, no existe la propiedad "NotifyTime" :(
@jfversluis
@jfversluis 2 жыл бұрын
The plug-in has been updated in the meanwhile. I think there is now a property called Schedule that has the info for scheduling a notification
@waldosoto4353
@waldosoto4353 2 жыл бұрын
@@jfversluis muchas gracias, revise los comentarios y después la documentación y me ha servido de gran ayuda, saludos
@addtyu6176
@addtyu6176 3 жыл бұрын
How do you cancel scheduled notifications???????????????????????????
@jfversluis
@jfversluis 3 жыл бұрын
I think you will have to give the NotificationRequest a unique id and then whenever you create another notification with that same id and a date in the past you will expire it automatically :)
@benboateng1820
@benboateng1820 2 жыл бұрын
bro how do u add sound
@jfversluis
@jfversluis 2 жыл бұрын
The NotificationRequest has a Sound property, you can use that
@benboateng1820
@benboateng1820 2 жыл бұрын
@@jfversluis yh i know but i want to no how to implement it
@jfversluis
@jfversluis 2 жыл бұрын
I don’t know what to tell you tbh :) add the sound file and set the property to the filename. I think the plug-in repository has a sample that does this.
@nicolasvictorion1178
@nicolasvictorion1178 Жыл бұрын
First of all thank you but, It doesn't work for me "This package has been deprecated as it is legacy and is no longer maintained"
@jfversluis
@jfversluis Жыл бұрын
Time to update to .NET MAUI :)
@SalehWolf
@SalehWolf 3 жыл бұрын
thank u!
@jfversluis
@jfversluis 3 жыл бұрын
My absolute pleasure!
@anandhathangavel8015
@anandhathangavel8015 3 жыл бұрын
NotifyTime is not coming
@jfversluis
@jfversluis 3 жыл бұрын
There was an update to this plug-in since this video. Check out the Schedule property :)
Implement Push Notifications with Xamarin.Forms (Android) and FCM
28:49
Local Push Notifications with .NET MAUI, Easy With This Plugin!
17:29
Gerald Versluis
Рет қаралды 36 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 11 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 25 МЛН
[BEFORE vs AFTER] Incredibox Sprunki - Freaky Song
00:15
Horror Skunx 2
Рет қаралды 19 МЛН
Farmer narrowly escapes tiger attack
00:20
CTV News
Рет қаралды 15 МЛН
Local Notification in Xamarin Forms
10:40
SPTutorials
Рет қаралды 15 М.
Decoupled Code with MessagingCenter in Xamarin.Forms
18:46
Gerald Versluis
Рет қаралды 12 М.
Pick Multiple Images and Videos with This Xamarin.Forms Library
26:00
Gerald Versluis
Рет қаралды 12 М.
Implement Push Notifications with Xamarin.Forms (iOS) and FCM
27:05
Gerald Versluis
Рет қаралды 27 М.
Show SnackBar and Toast Messages in Xamarin.Forms Apps
16:28
Gerald Versluis
Рет қаралды 12 М.
Push Notifications: What are they and how do I send them?
3:24
ParivedaInterns
Рет қаралды 165 М.
Xamarin Forms Firebase Analytics
11:08
MrNawshad
Рет қаралды 2,8 М.
.Net MAUI | Push Notification in .NET MAUI (Android & iOS)
17:10
Code Crafter
Рет қаралды 6 М.
Xamarin Forms Tutorial -  Android Local Notification
11:04
LearnTechnologies
Рет қаралды 3 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 11 МЛН