openid/AppAuth-Android

ActivityNotFoundException for some users - ready to help with debugging

volo-droid opened this issue · 1 comments

Checklist:

  • I am using the latest release
  • I searched for existing GitHub issues
  • I read the documentation
  • I verified the client configuration matches the information in the identity provider (or I am using dynamic client registration)
  • I am either using a custom URI scheme or https with App Links for client redirect.

Configuration

  • Version: 0.11.1
  • Integration: native Kotlin
  • Identity provider: Google, Facebook

Issue Description

A small amount of our users face ActivityNotFoundException crash on a getAuthorizationRequestIntent call. The workaround is straightforward, check if browserDescriptor is not null and suggest a user to install a browser if it is. But I've read through all the similar issues, and would like to ask if the project maintainers would be interested in some additional logs and debugging from our side? If so, we can add requested logs and report a silent exception to Crashlytics via the recordException call.

So far we just have the info about the affected devices:

  • Galaxy S21 5G
  • Nokia G20
  • Nokia 6.1
  • Nokia G21

The Android versions are: 12 (70% of affected users), 10 and 13 (15% each).

Let me know what information would be useful for further debugging.

I had the same problem too and the solution was to prevent the VersionedBrowserMatcher to match the signatureHashes. I did that because my problem was that the Samsung Internet Browser was downloaded from Galaxy Store, not from PlayStore and everything matched (version, package name, etc) except the signature hash. Maybe it can solve your issue as well.
(For reproduce my problem: Samsung A12, Android 12, downloaded Samsung Internet Browser from Galaxy Store, set default browser to Samsung Internet Browser and disable Chrome browser).