Closed ZoedAb closed 7 months ago
Thanks for your comment.
Callbacks to functions on the unity side from the browser are currently not possible.
This system works by connecting unity and the browser with a java plugin, but this plugin does not yet have the ability to execute unity functions.
I will add it in an update in the near future.
Add sendMessage(String go, String method, String message) to the plugin.
It is made to work by executing
function() {
com.tlab.libwebview.sendMessage(String go, String method, String message)
}
from javascript code.
See this document for the arguments.
com.libwebview.sendMessage()
was not working, so we fixed the plugin. The code for sending messages from js to Unity has been changed as follows.
Function() {
window.TLabWebViewActivity.unitySendMessage(String go, String method, String message)
}
is it possible to addlistener to a button on the webview to execute a function in unity