I am developing a Windows Store HTML5/Javascript app. As part of my app I need to invoke a Javascript method on a web page and retrieve its return value.
The control x-ms-webview
has a method invokeScriptAsync
that can invoke a script on a webview. However there is no way of retrieving a value back from any method call.
It also does not seem to support the standard method of communication with a host app, window.external.notify
.
How can I retrieve a value from a web page in a Windows Store app webview?