I have implemented the firebase authentication UI including the email and Google as providers. I have also included the ToS and privacy policy links as follows:
List<AuthUI.IdpConfig> providers = Arrays.asList(
new AuthUI.IdpConfig.EmailBuilder().build(),
new AuthUI.IdpConfig.GoogleBuilder().build());
// Create and launch sign-in intent
startActivityForResult(
AuthUI.getInstance()
.createSignInIntentBuilder()
.setTosAndPrivacyPolicyUrls(
"https://test.com/terms-and-conditions/",
"https://test.com/privacy-policy/")
.setLogo(getApp().isDemoApplication() ? R.drawable.log1 : R.drawable.log2)
.setTheme(R.style.LoginTheme)
.setAvailableProviders(providers)
.build(),
RC_SIGN_IN);
The links work perfectly fine in the first page but when I choose the Google option for authentication, then the links in the popup do not work and keep showing the toast saying "No browser found to open this link."
I have followed the instructions to reset my apps configurations, also reset my phone(s) and changed my default browser to chrome. But none of them solved the issue. I have tested this on two android phones; Sony Xperia with android 10 and Samsung Galaxy s8 with android 9.
Is there any settings I missed in my AuthUI or in my app?