I am converting my webpage to application with fuse.
I want to reuse most of my webpage by web view, and just replace the modal-popup on the web to native page.
so I have to get data to fill the native page from webview, but I cannot find some function helping communication embedded Webview and the native application like javascriptInterface on Android or UIWebview on IOS.
How can I pass the data from embedded web view to native and the opposite?
first of all, what you’re describing sounds like a pretty bad idea. Fuse excels at running OpenGL animations at 60fps, allowing for creating beautiful cross-platform apps, but you’re aiming to use it as a container for a website. There are other tools on the market that are fit for that very limited purpose.
Now, with that out of the way, there is of course an EvaluateJS trigger that you can use to communicate with the WebView.
first of all, what you’re describing sounds like a pretty bad idea. Fuse excels at running OpenGL animations at 60fps, allowing for creating beautiful cross-platform apps, but you’re aiming to use it as a container for a website. There are other tools on the market that are fit for that very limited purpose.
Now, with that out of the way, there is of course an EvaluateJS trigger that you can use to communicate with the WebView.
Hope this helps!
hello thank you for your answer!
but EvaluateJS seems little bit different from what I want, I wanna listen some data from webview on some action(in the webview) dynamically, but EvaluateJS seems just offers static pulling