How to launch javascript universal windows application from another UWP app in windows IoT?

戏子无情 提交于 2019-12-11 15:13:57

问题


My requirement is to launch UWP app from another UWP app.And i made it but its working in windows 10 desktop system not on Windows IoT OS,Kindly help me to fix this.

$(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
            }
        });
});

来源:https://stackoverflow.com/questions/51631652/how-to-launch-javascript-universal-windows-application-from-another-uwp-app-in-w

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!