flutter_webview_plugin
flutter_webview_plugin copied to clipboard
Url schemes for applications intents not working
Url schemes for applications intents not working, for example calling whatsapp://xxxx from web application from webview plugin renders error

This worked for me.
flutterWebviewPlugin.onUrlChanged.listen((String url) async {
if ( ! (url.startsWith("http:") )
{
flutterWebviewPlugin.goBack();
_launchURL(url); //use url launcher plugin
}
}
@deependra227 where should i put this code?
In void initState(){ }
@deependra227 I think I'm doing something wrong, can you please tell me

Remove async . check here.

@deependra227 yes it's working, thank you so much