Error Login with Android SDK - Browser Not Available

Overview

The following exception code “a0.browser_not_available” (isBrowserAppNotAvailable) is received when using “WebAuthProvider.login(account).start” This goes for the flow “onFailure(error: AuthenticationException)” for a version that was working properly.

Applies To

  • Android SDK

Cause

This error is related to the Android SDK not finding any available browsers on the device when calling the method: queryIntentActivities().

Solution

To fix this, please check the Android manifest file and check that it has the browsable category: Check whether a browser is available.

In the above article, there is the following example:

<!-- Place inside the <queries> element. -->
<intent>
  <action android:name="android.intent.action.VIEW" />
  <category android:name="android.intent.category.BROWSABLE" />
  <data android:scheme="https" />
</intent>