I’m currently experiencing some problems with EvaluateJS on a Webview.
It never actually trigger the handler function. The initial url comes from an Observable.
Im running on an Samsung Galaxy S5 (Android 6.0.1). It works on Iphone.
Is there a different or better way of getting the title and url from the webview?
Are you experiencing the same problem?
...
module.exports = {
...
onPageLoaded : function(res){
console.log('on page loaded');
}
<WebView Url="{url}" ux:Name="navWebView">
<ProgressAnimation>
<Change _loadingBar.Width="100%" />
</ProgressAnimation>
<PageLoaded>
<EvaluateJS Handler="{onPageLoaded}">
var result = {
title : document.title,
url: document.location.href,
}
return result;
</EvaluateJS>
</PageLoaded>
</WebView>