How to reproduce:
- Setup opera (version 50.2.xxxx) as default browser
- Try to login
Expected:
- Opera browser loads the login page
Actual:
- ActivityNotFoundException is thrown
With a little bit of debugging I've found that Opera does not expose the Intent.CATEGORY_BROWSABLE intent filter. The library fails at BrowserSelector.isFullBrowser():
// The filter must match ACTION_VIEW, CATEGORY_BROWSEABLE, and at least one scheme, if (!resolveInfo.filter.hasAction(Intent.ACTION_VIEW) || !resolveInfo.filter.hasCategory(Intent.CATEGORY_BROWSABLE) || resolveInfo.filter.schemesIterator() == null) { return false; }
Then an ActivityNotFoundException is thrown (as espected) but the user is unable to login.
This is the intended behaviour or I've missing something?
How to reproduce:
Expected:
Actual:
With a little bit of debugging I've found that Opera does not expose the Intent.CATEGORY_BROWSABLE intent filter. The library fails at BrowserSelector.isFullBrowser():
// The filter must match ACTION_VIEW, CATEGORY_BROWSEABLE, and at least one scheme, if (!resolveInfo.filter.hasAction(Intent.ACTION_VIEW) || !resolveInfo.filter.hasCategory(Intent.CATEGORY_BROWSABLE) || resolveInfo.filter.schemesIterator() == null) { return false; }Then an ActivityNotFoundException is thrown (as espected) but the user is unable to login.
This is the intended behaviour or I've missing something?