Skip to content

Third Party login #11

@SameerMohsinIdeas

Description

@SameerMohsinIdeas

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions