[TIMOB-24143] Hyperloop: Android - onPageStarted and onPageFinished on webViewClient not getting called using Hyperloop
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2018-12-11T16:39:12.000+0000 |
Affected Version/s | Release 5.3.1 |
Fix Version/s | Hyperloop 4.0.0 |
Components | Android, Hyperloop |
Labels | Android, Android6.0, Hyperloop |
Reporter | Pankaj Goyal |
Assignee | Jan Vennemann |
Created | 2016-11-12T14:11:36.000+0000 |
Updated | 2018-12-19T18:29:18.000+0000 |
Description
HI,
I am using webView via hyperloop. But onPageStarted, onPageFinished and all other callbacks of webViewClient not getting called. Below is the code that i used for the same:
var url = "https://www.google.co.in";
var win = Ti.UI.createWindow();
var WebView = require("android.webkit.WebView");
var WebViewClient = require("android.webkit.WebViewClient");
var Activity = require('android.app.Activity');
var activity = new Activity(Ti.Android.currentActivity);
var nativeView = new WebView(activity);
nativeView.setWebViewClient(new WebViewClient({
onPageStarted : function(view, url, favicon) {
Ti.API.info('hello onPageStarted');
alert("hello onPageStarted");
return false;
},
onPageFinished : function(view, url) {
Ti.API.info('hello onPageFinished');
alert("hello onPageFinished");
return false;
}
}));
nativeView.getSettings().setJavaScriptEnabled(true);
nativeView.loadUrl(url);
win.add(nativeView);
win.open();
Please help me on this.
Thanks
Pankaj Goyal
It looks like you are using the methods incorrectly, maybe you are missing super calls here? [~michael] Can you help him getting in the right direction?
HI @Hans Knoechel, Thanks for the reply. How you can call super in javascript. I could not find super calls in any of the examples provided by appcelerator. Please help. Thanks Pankaj Goyal
Hi, Why you guys have changed the priority of the bug as NONE. This bug is very critical for the release of my application. Please help me out on this ASAP. Thanks Pankaj Goyal
[~goyalpankaj054@gmail.com] The priority is set by the assigned engineer after the issue has been determined. It will be looked into in this sprint.
Hi, Any help or suggestion on this?
Hi Michael, Thanks for the reply. I have tried this with extending as well but still it did not work . When we can expect resolution of this. Thanks Pankaj Goyal