You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation suggests to avoid authorization_user_agentWEBVIEW, in fact following the suggested best practice for mobile Google does not allow logging in using webview agent, but if the user has a supported browser installed (e.g. Chrome) and the default one isn't in the supported list (e.g. Mi Browser), the library:
uses webview, if authorization_user_agent is DEFAULT
The only workaround we found is to manually change the default browser to a supported one.
Modifying the BrowserSelector.getAllBrowsers method and the BROWSE_INTENT to match the AppAuth library (which it is working in another project) seem to solve the problem and the library is able to use a supported browser even if it's not the default one.
Am I missing something to allow the library to check for all installed browsers?
I think a more user-friendly behavior should be to be able to use a supported browser if it is installed and the default one isn't supported, rather than forcing the user to change his/her default browser.
The text was updated successfully, but these errors were encountered:
If the default system browser is Mi Browser or Brave, using authorization_user_agentDEFAULT cause the webview to be opened (so the user is unable to login with a google account), while setting it to BROWSER cause the missing browser error.
Changing the default system browser to Chrome or Firefox the library works as expected.
As a workaround, I'm currently using a custom version of this library with a modified version of the BrowserSelector.getAllBrowsers.
We are experiencing an issue where the BrowserSelector.getAllBrowsers seems to pick only the phone default browser.
The documentation suggests to avoid
authorization_user_agent
WEBVIEW
, in fact following the suggested best practice for mobile Google does not allow logging in using webview agent, but if the user has a supported browser installed (e.g. Chrome) and the default one isn't in the supported list (e.g. Mi Browser), the library:authorization_user_agent
isDEFAULT
authorization_user_agent
isBROWSER
The only workaround we found is to manually change the default browser to a supported one.
Modifying the BrowserSelector.getAllBrowsers method and the BROWSE_INTENT to match the AppAuth library (which it is working in another project) seem to solve the problem and the library is able to use a supported browser even if it's not the default one.
Reading the
authorization_user_agent
documentation, it seems that this is the intended behavior for valueBROWSER
, but not forDEFAULT
.Am I missing something to allow the library to check for all installed browsers?
I think a more user-friendly behavior should be to be able to use a supported browser if it is installed and the default one isn't supported, rather than forcing the user to change his/her default browser.
The text was updated successfully, but these errors were encountered: