indefinite

Run Background Task Indefinitely in UWP

ぐ巨炮叔叔 提交于 2020-01-03 05:04:08
问题 I have a requirement to constantly poll an API and provide notifications in UWP app irrespective of whether it is Visible to user OR minimized OR Not in focus OR Suspended . If I choose to write it in the app itself, it stopped working while app is suspended and resumed while again app is opened or kept in focus. So I chosen Background Task so that it runs everytime even when app is suspended (ex: minimized). But now any background task is limited to short span of 30secs and if it is