Local Push Notifications in Xamarin.Forms

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ย. 2024

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

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

    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 ปีที่แล้ว +1

      It's coming... th-cam.com/users/postUgzMeNBCNkNakQf_Akh4AaABCQ

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

    Спасибо, мужик, ты мне очень сильно помог! Я бы мог написать это на английском языке, но знай, что ты помог русскому, поэтому твоя популярность охватывает широкие территории! Я подписался, буду следить за твоим каналом!

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

      Thanks man! Had to use some Google translate magic but I got the message! Thanks a lot, appreciate it! :)

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

    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 ปีที่แล้ว +1

      I am also waiting for this

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

      It's coming... th-cam.com/users/postUgzMeNBCNkNakQf_Akh4AaABCQ

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

    This topic is needed

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

      Now it’s here! 😄

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

    I don't usually subscribe, but you deserve it. Thanks a lot for the video.

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

      Thank you Selim! Appreciate that!

  • @user-fu3is7qc8f
    @user-fu3is7qc8f ปีที่แล้ว +2

    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

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

    Thanks again for your contributions !

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

    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* 😀

  • @deaasaleh3613
    @deaasaleh3613 3 ปีที่แล้ว +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 ปีที่แล้ว +1

      @@jfversluis firebase, onesignal or Azure Notification Hubs

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

      Yes I agree, Notification integrated with Firebase please

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

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

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

    Exactly what I am searching for! one hour ago!

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

      Hope it still helps! 😄

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

      @@jfversluis you vids always help, Thank you for your good service sir!

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

    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.

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

    Thanks so much Gerald, I was looking for something like this

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

      Glad to be of service!

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

    so simple
    very well
    With fluent expression
    Thankful

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

      Thanks Hassan! Glad you liked it!

  • @stryder12345
    @stryder12345 2 ปีที่แล้ว +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 😀

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

    thank you! very helpful and explained well!

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

      Glad it was helpful and thank you for the kind words!

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

    awesome stuff and nicely explained. dank!

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

      Glad you liked it! Thanks for letting me know!

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

    Thank You Gerald! Subscribed :)

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

      I should be thanking you then Richard!

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

    Thanks for video, i found it much useful for me)

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

      Glad to hear that! Thank you so much!

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

    thank you so much this video is really helpful~~😃

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

      Great! Thank you for watching!

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

    Thank you so much , your explaining is tooo clear

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

      Thank you! That is wonderful to hear!

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

      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 ปีที่แล้ว +1

      @@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 ปีที่แล้ว +1

      Yes i'm sure , maybe because the new version of plugin was changed . Thanks .

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

      Huh! You’re right. That’s funny. Ok it looks like you now need to use the Schedule property for that :)

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

    Great video!

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

    thank you so much for this kind of video

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

      My pleasure! Just glad you find it useful!

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

      @@jfversluis bro .. just i have small problem .. i cant find NotifyTime in this list what can i do plz?

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

      I think that moved into another property in a newer version that was released after this video :)

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

    Thank you, just what I needed for my App.

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

      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 ปีที่แล้ว +1

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

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

    @Gerald, could you please help - why the notification doesnt appear on the screen as the popup. I can only see the notification in the all notifications list on the phone. The phone just vibrates on getting the notification and increases the badge. But the message doesnt appear.

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

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

    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  ปีที่แล้ว +1

      Looks like you can with version 7 and up: github.com/thudugala/Plugin.LocalNotification/wiki/Notification-with-Action#xamarinforms

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

    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  ปีที่แล้ว

      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.

  • @PradeepKumar-ej3nn
    @PradeepKumar-ej3nn 2 ปีที่แล้ว

    How to Dynamically Update the badge count .. unable to update the badge count

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

    Thank you so much!! man

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

    Thank You So Much.

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

      My pleasure! Hope it’s useful!

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

    Thank you!

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

      You’re welcome!

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

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

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

    Привет! Автор дает хорошие материалы, смотрю не первую фичу уже. Рекомендую.

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

    Please make a video about how to use notification in MAUI.

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

      Will come, but might take a while

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

    Oh Great really helpful

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

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

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

    I have a question. When I send notification twice, only appering one of them. IDK why , How to solve it ?

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

      Do you specify a different ID?

  • @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 ปีที่แล้ว +2

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

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

    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  2 ปีที่แล้ว

      Specify a different id probably:)

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

    nice teacher

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

    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  ปีที่แล้ว

      I think you need to update the notification with the same I’d but set the notification date in the past

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

    hi sir, how can we add sound and image
    to this notification

  • @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 ปีที่แล้ว +1

      Sorry, got it. I wrote on appshell.xaml.cs

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

      Glad you found it!

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

    thank u!

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

      My absolute pleasure!

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

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

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

    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: th-cam.com/video/7w2q2D6mR7g/w-d-xo.html

  • @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 ปีที่แล้ว +1

      Check the plug-in repo!

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

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

    Update 04/2022:
    Change NotifyTime for
    Schedule =
    {
    NotifyTime = DateTime.Now.AddSeconds(5)
    }

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

      Thanks for sharing!

  • @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 ปีที่แล้ว +1

      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?

  • @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 ปีที่แล้ว +1

      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!

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

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

    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  2 ปีที่แล้ว

      Thank you Christian! Have you checked the library repo? Maybe there is a bug there that causes this

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

    How do you cancel scheduled notifications???????????????????????????

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

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

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

    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 ปีที่แล้ว +1

      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 ปีที่แล้ว +1

      Thanks for the help @Mad Ox! Let me know if you can figure it out :)

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

  • @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  ปีที่แล้ว

      Looks like that is something you can do with version 7+: github.com/thudugala/Plugin.LocalNotification/wiki/Notification-with-Action#xamarinforms

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

    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  ปีที่แล้ว

      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 ปีที่แล้ว

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

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

    This is great Gerald, very help for us Xamarin Developer. Is the Plugin NuGet available for UWP?

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

      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 ปีที่แล้ว +1

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

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

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

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

    can you tell me how to set timeout for this pop

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

      Not sure what you mean by this?

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

    manage to make it on iOS, but i realised no notification sound, even i declared PlayForegroundSound, any cue on this?

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

      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?

  • @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 ปีที่แล้ว +1

      Then you probably need to use a different id to make them unique :)

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

  • @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  ปีที่แล้ว +1

      Time to update to .NET MAUI :)

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

    Thanks
    Ca you make one about FCM push notification ?

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

      It's coming... th-cam.com/users/postUgzMeNBCNkNakQf_Akh4AaABCQ

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

      @@jfversluis
      Thanks

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

    Does the tapped event work with xamarin forms shell?

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

      I would think so yes

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

      @@jfversluis I seem to have some error Everytime I use it.

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

    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  2 ปีที่แล้ว

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

  • @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 ปีที่แล้ว +1

      Double check it’s really installed :) if it is the namespace should be there

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

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

    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  ปีที่แล้ว

      Should be possible with this!

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

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

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

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

    can i send notification while app is closed after scheduled it?

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

  • @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 ปีที่แล้ว +1

      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 ปีที่แล้ว +1

      Ah good! Glad you figured it out! 😄

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

      @@veiga757 Hi do you solved this? I had the same problem :(

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

    Can you make a video on how to do this in Maui?

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

      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.

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

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

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

  • @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: th-cam.com/video/7w2q2D6mR7g/w-d-xo.html

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

      @@jfversluis Thanks Bro it helped ! , You are my Spiderman :-D

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

      @@nimaaminz2378 Haha thank you! :D

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

    • @user-ou4wv1ln7m
      @user-ou4wv1ln7m 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 ปีที่แล้ว

      @@user-ou4wv1ln7m Haha no worries, glad I could help!

  • @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 ปีที่แล้ว +1

      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 ปีที่แล้ว +1

      @@jfversluis yes it was the Priority, thanks a lot

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

      Awesome! Glad I was able to help

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

    please show how to add sound file in this notification package

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

      Added to the list of videos to make, thanks!

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

      @@jfversluis please make it as alarm type app

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

      I’m not going to build an app for you ;)

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

  • @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 ปีที่แล้ว +1

      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?

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

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

  • @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 ปีที่แล้ว

      th-cam.com/video/-Nj_TRPlx-8/w-d-xo.html&lc=Ugx__EJ--qJHvZFqnfh4AaABAg

  • @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 ปีที่แล้ว +1

      @@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 ปีที่แล้ว +1

      Glad you fixed it! I will see about that answer tomorrow, thanks! 😄

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

    Hola, no existe la propiedad "NotifyTime" :(

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

      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

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

    Is it possible to add choices inside the messages, like in Whatsapp where you can tap the "Reply" button

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

      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 ปีที่แล้ว

      @@jfversluis alright, thanks for the info!

  • @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 2 ปีที่แล้ว

      @@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  2 ปีที่แล้ว

      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?

  • @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 ปีที่แล้ว +1

      You should be able to but I don’t know your project so it’s impossible to tell :) hope it works!

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

      @@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 ปีที่แล้ว +1

      Report it on that same repo, might be a bug then :)

  • @VictorHugo-jr7qu
    @VictorHugo-jr7qu 2 ปีที่แล้ว

    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  2 ปีที่แล้ว +1

      You can set: UIApplication.SharedApplication.ApplicationIconBadgeNumber = 0;
      You will have to do this in iOS specific code though

    • @VictorHugo-jr7qu
      @VictorHugo-jr7qu 2 ปีที่แล้ว

      @@jfversluis Thank you! it worked wonderful! Thanks again

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

      Great! Thanks for letting me know!

  • @AhmedAli-iz4ep
    @AhmedAli-iz4ep 3 ปีที่แล้ว

    I want send notification from
    My sql server
    Can help you

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

      While technically you could do it from SQL Server I would recommend doing it from the server that interacts with your SQL database :)