Last active
May 10, 2019 08:50
-
-
Save MotiurRahman/5bf91b3d3448e3f49a7d05ab99bac497 to your computer and use it in GitHub Desktop.
Android: WebView eval JS timeout error android v5.0.X only.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[INFO] : 'mytest' | |
[WARN] : TiWebViewBinding: (KrollRuntimeThread) [50477,50477] Timeout waiting to evaluate JS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script type="text/javascript" src="testing.js"></script> | |
</head> | |
<body> | |
Tap the ActionBar back arrow. | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function doTest() | |
{ | |
Ti.API.info("doTest()"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment