UWP Not working with DateTime object
See original GitHub issueBug
When using the plugin without a DateTime object the notification work as expected, but with the DateTime object in UWP app I do not receive a notification
Plugin Version: 2.1.0 Platform: UWP Device/Hardware: Local machine and windows phone emulator
Expected behavior
Recive a notification
Actual behavior
Do not receive a notification
Steps to reproduce the behavior
- Create a Xamarin.forms PCL solution
- On a button click, I have added the following code
CrossLocalNotifications.Current.Show("Test Title", "Test Body", 111, DateTime.Now.AddSeconds(5));
Issue Analytics
- State:
- Created 6 years ago
- Comments:8
Top Results From Across the Web
UWP Not working with DateTime object · Issue #23
When using the plugin without a DateTime object the notification work as expected, but with the DateTime object in UWP app I do...
Read more >Cannot convert string to DateTime in uwp
So to solve your problem, I'd suggest you use The General Date Long Time ("G") Format Specifier. The "G" standard format specifier represents...
Read more >DateTime Struct (Windows.Foundation) - UWP
Represents an instant in time, typically expressed as a date and time of day. JavaScript This type appears as the Date object. .NET...
Read more >[UWP] [EF] How to format DateTime column in UWP DataGrid
Hello, I have DataGrid, and I use AutoGenerateColumns=true; For getting data from SQLite database I use EntityFramework (EF) How to format ...
Read more >Bind a DateTime Instance to Calendar SelectedDateRange ...
This article demonstrates how to bind a DateTime instance to calendar property of type CalendarDateRange using the CalendarDateToSingleDateRangeConverter. The ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
fixed https://github.com/edsnider/localnotificationsplugin/pull/43
@IeuanWalker: fair point. I have never developed a plugin and I’m not sure how, in case of the different versions windows, the platform-specific implementations are resolved at runtime. But looking at all windows projects, this is the only implementation I see, the other projects are empty, so I guess this file has got to be used, somewhat.
Moreover, I have tried it locally, by doing the correction I mention (namely: creating a
ScheduledToastNotification
in place of aScheduledTileNotification
and queue it through aToastNotificationManager
instead of aTileNotificationManager
and it works as expected - although I have tried it by manually replicating the plugin structure inside my application). I may try pushing the changes myself when I’ll have a bit of time to learn how to test plugins.Hope it helps.