Hi, Rohan Pande
You need to view it through http(s) server.
Eg.
Create HTML and replace your customProtocol :
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>launch app</title>
</head>
<body>
<a href="#" onclick="launchCustomProtocol()">launch app</a>
<script>
function launchCustomProtocol() {
// Replace "testurl://asdfg" with your custom protocol
var customProtocol = "testurl://asdfg";
// Open a new window with the custom protocol
window.open(customProtocol, "_blank");
}
</script>
</body>
</html>
If you have python installed (by Visual Studio Installer or python official website) and add python to system environment path, you can create a simple server.
Open CMD -> cd to the html file location.
input cmd
python -m http.server
Then you will see:
open http://localhost:8000
in your browser ->open the html file -> click launch app.
Best regards,
Minxin Yu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.