我的要求是从另一个UWP应用程序启动UWP应用程序。我做到了,但是它可以在Windows 10桌面系统(而不是Windows IoT OS)上运行,请帮助我解决此问题。
$(document).on('click', '.openTAT', function () {
var testAppUri = new Windows.Foundation.Uri("test-app2app:");
var options = new Windows.System.LauncherOptions();
options.TargetApplicationPackageFamilyName = "TATApp_ehke6zp0mbebr";
Windows.System.Launcher.launchUriAsync(testAppUri, options).then(
function (success) {
if (success) {
// URI launched
x = "success";
$("#errorLabel").html("success");
} else {
x = "failed";
$("#errorLabel").html("failed");
// URI launch failed
}
});
});