Hi I am using the same example for my scenario below is the code: ``handleClick() async {
final defaultUserAgent = await InAppWebViewController.getDefaultUserAgent();
if (kDebugMode) {
print("Default User Agent: $defaultUserAgent");
}
String? newUserAgent;
if (Platform.operatingSystem.toUpperCase() == "ANDROID") {
newUserAgent = defaultUserAgent.replaceFirst("; wv)", ")");
} else {
newUserAgent = "$defaultUserAgent Safari/604.1";
}
if (kDebugMode) {
print("New User Agent: $newUserAgent");
}
await webViewController?.setSettings(
settings: InAppWebViewSettings(userAgent: newUserAgent));
await goHome();
}
onLoadStart: (controller, url) async {
if (url.toString().startsWith(
"https://accounts.google.com/o/oauth2/v2/")) {
print("=>in if block of google auth");
handleClick();
print("=>handleClick");
}
},
``
After clicking on google login I get blank screen. As the normal behavior on the web is that after login it goes to the accounts information page. Let me know if I am doing something wrong or if there is any modification that I can do to achieve normal behavior. Looking for a quick respinse
Hi I am using the same example for my scenario below is the code: ``handleClick() async {
final defaultUserAgent = await InAppWebViewController.getDefaultUserAgent();
if (kDebugMode) {
print("Default User Agent: $defaultUserAgent");
}
}
onLoadStart: (controller, url) async {
if (url.toString().startsWith(
"https://accounts.google.com/o/oauth2/v2/")) {
print("=>in if block of google auth");
handleClick();
print("=>handleClick");
}
},
``
After clicking on google login I get blank screen. As the normal behavior on the web is that after login it goes to the accounts information page. Let me know if I am doing something wrong or if there is any modification that I can do to achieve normal behavior. Looking for a quick respinse