cancel notification
This commit is contained in:
1 parent
c9895f1960
commit
7fb94411c6
2 files changed
+3
-3
No files matched your search
@@ -43,7 +43,7 @@ public class AppNotificationActivationHandler : ActivationHandler<LaunchActivate
|
|||||||
|
|
||||||
App.MainWindow.DispatcherQueue.TryEnqueue(DispatcherQueuePriority.Low, () =>
|
App.MainWindow.DispatcherQueue.TryEnqueue(DispatcherQueuePriority.Low, () =>
|
||||||
{
|
{
|
||||||
App.MainWindow.ShowMessageDialogAsync("TODO: Handle notification activations.", "Notification Activation");
|
App.MainWindow.ShowMessageDialogAsync("TODO: Handle notification activations.", "Notification Activation");
|
||||||
});
|
});
|
||||||
|
|
||||||
await Task.CompletedTask;
|
await Task.CompletedTask;
|
||||||
|
|||||||
@@ -98,8 +98,8 @@ public partial class App : Application
|
|||||||
protected async override void OnLaunched(LaunchActivatedEventArgs args)
|
protected async override void OnLaunched(LaunchActivatedEventArgs args)
|
||||||
{
|
{
|
||||||
base.OnLaunched(args);
|
base.OnLaunched(args);
|
||||||
|
// cancel notification
|
||||||
App.GetService<IAppNotificationService>().Show(string.Format("AppNotificationSamplePayload".GetLocalized(), AppContext.BaseDirectory));
|
// App.GetService<IAppNotificationService>().Show(string.Format("AppNotificationSamplePayload".GetLocalized(), AppContext.BaseDirectory));
|
||||||
|
|
||||||
await App.GetService<IActivationService>().ActivateAsync(args);
|
await App.GetService<IActivationService>().ActivateAsync(args);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user