locked
Schedule Toast notification with processing RRS feed

  • Question

  • hi everyone,

    I used an dispatchertimer to check something every 30 minutes and when needed toastnotify me for my own personal needs. However if the app is not launched or suspended it doesnt run my code..

    Scheduled toasts dont give me the processing power to check what i want on the moment the toast is shown.

    Monday, October 26, 2015 9:44 PM

Answers

  • Hi,

    Have you looked into background tasks? They have been around a long time but here's a brand new article;

    https://msdn.microsoft.com/en-us/magazine/mt590969?f=255&MSPPError=-2147217396

    It sounds like you might specifically want to look into either maintenance triggers or timer triggers - if you look those up on MSDN;

    https://msdn.microsoft.com/en-us/library/windows/apps/windows.applicationmodel.background.maintenancetrigger.aspx

    https://msdn.microsoft.com/en-us/library/windows/apps/windows.applicationmodel.background.timetrigger.aspx

    Thanks,

    Mike

    • Proposed as answer by Krunal Parekh Tuesday, October 27, 2015 8:03 AM
    • Marked as answer by Krunal Parekh Monday, November 9, 2015 10:00 AM
    Monday, October 26, 2015 10:22 PM
  • Hello Fazioli amboina,

    Here is a Latest Background task on the UWP.

    Background task sample

    If you want to schedule the toast notification then as suggested time trigger would be the best option.

    You can see documentations regarding Toast Notifications here. Sending toast notifications (XAML)

    With Regards,

    Krunal Parekh


    Thanks MSDN Community Support Please remember to Mark as Answer the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Proposed as answer by Krunal Parekh Monday, November 9, 2015 10:00 AM
    • Marked as answer by Krunal Parekh Tuesday, November 10, 2015 5:13 AM
    Tuesday, October 27, 2015 8:20 AM

All replies

  • Hi,

    Have you looked into background tasks? They have been around a long time but here's a brand new article;

    https://msdn.microsoft.com/en-us/magazine/mt590969?f=255&MSPPError=-2147217396

    It sounds like you might specifically want to look into either maintenance triggers or timer triggers - if you look those up on MSDN;

    https://msdn.microsoft.com/en-us/library/windows/apps/windows.applicationmodel.background.maintenancetrigger.aspx

    https://msdn.microsoft.com/en-us/library/windows/apps/windows.applicationmodel.background.timetrigger.aspx

    Thanks,

    Mike

    • Proposed as answer by Krunal Parekh Tuesday, October 27, 2015 8:03 AM
    • Marked as answer by Krunal Parekh Monday, November 9, 2015 10:00 AM
    Monday, October 26, 2015 10:22 PM
  • Hello Fazioli amboina,

    Here is a Latest Background task on the UWP.

    Background task sample

    If you want to schedule the toast notification then as suggested time trigger would be the best option.

    You can see documentations regarding Toast Notifications here. Sending toast notifications (XAML)

    With Regards,

    Krunal Parekh


    Thanks MSDN Community Support Please remember to Mark as Answer the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Proposed as answer by Krunal Parekh Monday, November 9, 2015 10:00 AM
    • Marked as answer by Krunal Parekh Tuesday, November 10, 2015 5:13 AM
    Tuesday, October 27, 2015 8:20 AM