[UWP] [C#]启动器不能从后台任务工作? [英] [UWP][C#] Launcher is not working from background task?

查看:92
本文介绍了[UWP] [C#]启动器不能从后台任务工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用后台任务中的Launcher启动URI,但它无法从后台任务中运行。同一个启动器正在从前台工作。从后台任务启动器正在逐步执行
,同时调试但不能正常执行。


I am trying to launch a URI by using Launcher from background task but it is not working from background task. The same launcher is working from foreground. From background task launcher is working while step by step execution while debugging but not working from normal execution.

推荐答案

您好,

Launcher API仅适用于app UI线程,这意味着应用必须位于前台

启动器

Launcher API work only from app UI thread which mean that the app must be in foreground Launcher


这篇关于[UWP] [C#]启动器不能从后台任务工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆