I have developed one windows universal application and one web application. I known that I could launch my uwp app that has scheme name( myapp:
) via LaunchUriAsync
method in the source uwp app or Run
dialog box.
But I could not found any approach to launch uwp app within browser. I know this is feasible.
I want open windows universal app form web application. Can give me some advice?
Thanks in advance.
i want open windows universal app form web application.
You could open your UWP app that registered to become the default handler for a Uniform Resource Identifier (URI) scheme name.
And then, you could create a simple html page like following:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>App36</title>
<link href="css/default.css" rel="stylesheet" />
</head>
<body>
<div>Content goes here!</div>
<div>
<a href="ms-windows-store:">OpenApp</a>
</div>
<script src="js/main.js"></script>
</body>
</html>
When you click OpenApp
label in bower that runs in the window 10 operation system, it will launch the store app. You could replace ms-windows-store:
with your app Uri protocol name(eg: myapp:
)to launch your app.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.