The following code works OK in Chrome but not from a DS App.
Simon.
<html>
<head>
<meta name="viewport" content="width=device-width">
<script src="ds:/Sys/app.js"></script>
</head>
<script>
//Called after application is started.
function OnStart()
{
}
function share() {
if (navigator.share) {
navigator.share({
title: 'My Website',
url: '
https://www.abc123.com'
})
} else
{console.log("Share is not supported!")};
}
</script>
<style>
body { background-color: #ffffff; }
</style>
<body onload="app.Start()">
<button id="share_button" onClick='share();'>SHARE ME!</button>
</body>
</html>