I need to trigger my background task when the application added the toast notification to the action center. I have tried with ToastNotificationHistoryChangedTrigger
and it's not triggering the task when the application added the toast notification.
Is there any solution for it?
相关问题
- Inheritance impossible in Windows Runtime Componen
- WP8.1 How to cancel a Background Audio Task in C#
- Microsoft store certification fails due to DPI awa
- Programmatically read target platform during run t
- Replacing or recreating a file in Windows 8 RT kee
相关文章
- How to create a MediaClip from RenderTargetBitmap
- Windows 8.1 How to fix this obsolete code?
- Show flyout using BottomAppBar
- How to overlay items in StackPanel or ListView?
- C# UWP Toolkit DropShadowPanel inner shadow
- Exception when reading text from the file using Fi
- Could not find a suitable SDK to target
- Building Windows 8 Metro App on Windows 7 with Vis
ToastNotificationHistoryChangedTrigger is fired whenever the collection of toast notification history from your app changes on the device. Subscribing this trigger, will allow your app to get notified when:
Note: the only thing your app wouldn’t be notified for, is a local toast being popped/added, since it is not necessary to notify your app client about something it just did.
So generally, an app can be notified with
ToastNotificationHistoryChangedTrigger
when the app’s collection of notifications is changed in any way that’s not caused by the app’s local client. If your application added the toast notification by itself, the trigger won't be fired.