Button1.onclick = function() {
args = {};
args.title = "The Title";
args.text = "The message";
args.url = "https://example.com";
navigator.share(args);
};
Basic:
Function Button1_onclick()
args = {}
args.title = "The Title"
args.text = "The message"
args.url = "https://example.com"
navigator.share(args)
End Function
Thank you, however running my app through the Web Inspector of MAC OS connecting my IPAD, I get this error.
[Error] Unhandled Promise Rejection: NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.
(anonymous function)
rejectPromise
share
But I am going to do more testing, I can get it to work if i include a button and code in the button onclick all fine but if i call a function containing the code from the menu selection does not work.
I will get back to you once I have done some more checking.