Configure Google Login in WebView

Google login might not work out-of-the-box when used inside WebViews.

For security reasons Google prevents the login page from being displayed when the page is requested from within a WebView element.

To resolve that issue, you will want to display your Google login page using a custom popup, that can be configured using the following parameters in your app's advanced configuration:

"Regex_Social_Login": {
  "Regex_Social_Login_Opening_Method": "popup",
  "Regex_Social_Login_Rules": [
    {
     	"Regex": ".pay\\.google."
    },
    {
	"Regex": ".accounts\\.google."
    }
  ]
}

Regex_Social_ Login_ Opening_ Method

This parameter should always default to "popup"

Regex_Social_ Login_ Rules

Within the rules, we can have multiple regex expressions to identify which URLs should be opened using this method.

In the example above we have configured the Google Account page and the GPay page to open in the popup.

You will want to make sure that these URLs are all configured to open as internal links in your app, otherwise they will open outside the app and the popup won't work.

Thank you! We'll be in touch within 48 hours :)
Oops! Something went wrong while submitting the form.