Skip to content Skip to sidebar Skip to footer

Toast Notifications Only Pop Up If The App Is Being Activated

I have this problem with toast notifications, my app shows toast notifications only when it is activated (I.e: when I am using it). Here is my code for the toast notifications:

Solution 1:

I think you're making this harder than it needs to be :) If you used scheduled notifications it would just work and you wouldn't need any background tasks.

If you do want to work with background tasks, there is the Introduction to Background Tasks whitepaper that may be of help.

Solution 2:

Based on the details and code you've shared, you should look into the ScheduledToastNotification class. Windows will show scheduled toasts for an app at a specified time, even if the app is not running or is suspended.

Post a Comment for "Toast Notifications Only Pop Up If The App Is Being Activated"