-
Notifications
You must be signed in to change notification settings - Fork 939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend webview with javascript interface functionality #71
Comments
Probably possible, we should be able to create a bridge between the native class and the flutter code |
I have implemented on android ,sample code here:
`
` @OverRide sorry for the format ,this is my first comment with code |
@fujinjun maybe you could create PR? Since you already have code. |
@charafau I do not have much time on this,but you can see code in my fork https://github.com/fujinjun/flutter_webview_plugin |
Is this implemented? I need to add JavaScript communication on my webview |
@fujinjun I clone your code and i have been implement at my proj but don't work ,This is my code. void main() => runApp(MyApp()); class MyApp extends StatefulWidget { class _Main extends State { @OverRide
} void dispose() { @OverRide don't continue to starting webpage. Pause at handler method.Pls help me this is javascriptinterface code.. class FlutterJsInterface {
loginFacebook() is name of javascript from backend |
In android we an do this as shown below code: In Flutter WebViewController plugin how can I hide header, footer or show only part of the page that has div id and class id? view.getSettings().setJavaScriptEnabled(true);
|
@sakina1403 you can communicate with javascript using |
I solved this problem with dynamic channel name for Android and iOS #523. Hope it's helpful |
|
This could help support webapps, and enable cross communication between our flutter app and the webview as is possible with the native webview. Is this achievable?
The text was updated successfully, but these errors were encountered: