Skip to content

Instantly share code, notes, and snippets.

@MotiurRahman
Last active May 10, 2019 08:50
Show Gist options
  • Save MotiurRahman/5bf91b3d3448e3f49a7d05ab99bac497 to your computer and use it in GitHub Desktop.
Save MotiurRahman/5bf91b3d3448e3f49a7d05ab99bac497 to your computer and use it in GitHub Desktop.
Android: WebView eval JS timeout error android v5.0.X only.
var win = Ti.UI.createWindow({
title: "Test Motiur Rahamn"
});
var view = Ti.UI.createWebView({
url: "test.html"
});
win.add(view);
view.addEventListener('load', function() {
Ti.API.info('WebView load listener called');
view.evalJS('doTest()');
});
win.open();
[INFO] : 'mytest'
[WARN] : TiWebViewBinding: (KrollRuntimeThread) [50477,50477] Timeout waiting to evaluate JS
<html>
<head>
<script type="text/javascript" src="testing.js"></script>
</head>
<body>
Tap the ActionBar back arrow.
</body>
</html>
function doTest()
{
Ti.API.info("doTest()");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment