I’ve created a web game, can I put the game in android webview? and how can I interact with the android java code?
It’s more like a Android problem then a Cocos problem.
Well, the opposite, a Cocos game with a webview, you can’t get the events from the website (based on a similar question that I did not so long ago App Scroll up when keyboard is visible).
Can I use inject the Javascript interface to it?
webView.addJavascriptInterface(webAppInterface,“AndroidApi”);
Then call this method in my javascript from cocos :
AndroidApi.showMessage(“Something here”);