question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UWP Not working with DateTime object

See original GitHub issue

Bug

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:closed
  • Created 6 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
mapgccvcommented, Oct 3, 2017

@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 a ScheduledTileNotification and queue it through a ToastNotificationManager instead of a TileNotificationManager 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.

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found