Just wanted to let you know that flutter, on Android, has still this problem: dart-lang/http#877
It means that, whenever you are using an external browser to manage the authentication process and the App (using this package) goes in background and the authentication process fails with error:
ClientException with SocketException: Failed host lookup: 'xxx.yyy.zzz' (OS Error: No address associated with hostname, errno = 7)
The only way, I discovered, to solve the situation is:
- Using LaunchMode.inAppWebView (please be aware webview don't support self signed certificates!)
urlLauncher(String url) async {
var uri = Uri.parse(url);
await launchUrl(uri,
mode: LaunchMode.inAppWebView,
);
}
It could be usefull to add these informations on the docs
Just wanted to let you know that flutter, on Android, has still this problem: dart-lang/http#877
It means that, whenever you are using an external browser to manage the authentication process and the App (using this package) goes in background and the authentication process fails with error:
ClientException with SocketException: Failed host lookup: 'xxx.yyy.zzz' (OS Error: No address associated with hostname, errno = 7)
The only way, I discovered, to solve the situation is:
It could be usefull to add these informations on the docs