Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24143] Hyperloop: Android - onPageStarted and onPageFinished on webViewClient not getting called using Hyperloop

GitHub Issuen/a
TypeBug
PriorityHigh
StatusResolved
ResolutionFixed
Resolution Date2018-12-11T16:39:12.000+0000
Affected Version/sRelease 5.3.1
Fix Version/sHyperloop 4.0.0
ComponentsAndroid, Hyperloop
LabelsAndroid, Android6.0, Hyperloop
ReporterPankaj Goyal
AssigneeJan Vennemann
Created2016-11-12T14:11:36.000+0000
Updated2018-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

Comments

  1. Hans Knöchel 2016-11-12

    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?
  2. Pankaj Goyal 2016-11-12

    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
  3. Pankaj Goyal 2016-11-14

    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
  4. Hans Knöchel 2016-11-14

    [~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.
  5. Pankaj Goyal 2016-11-15

    Hi, Any help or suggestion on this?
  6. Michael Gangolf 2016-11-16

  7. Pankaj Goyal 2016-11-17

    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

JSON Source