windows phone 8.1 - Long-running task performed in foreground is suspended when app goes to background -
when user first opens app, need download , install content server before can begin using app. problem takes around 5 minutes on wifi, during time app goes background , download suspended.
is there way either:
prevent windows app entering background while perform download or continue peforming task in background (i.e. perform task irrespective of whether app in foreground or background)
also, don't want use backgrounddownloadmanager
thanks
when app being suspended, processes stopped , and background task cancelled. last chance suspending event - see more @ msdn.
in case, when need download big file in background - mentioned backgrounddownloader best option - it's designed such tasks. in other cases have convince user leave app in foreground (a message?), take care lockscreen (see displayrequest class).
i'm not sure maybe able use backgroundtask (separate process), triggered maintancetrigger - user able download file in specific circumstances , not right away.
Comments
Post a Comment