[PR #3071] [PM-6751]Added missing query intent for CustomTabs that might be responsible for the Exception in WebAuthenticator #4006

Closed
opened 2025-11-26 23:39:33 -06:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/bitwarden/android/pull/3071

State: closed
Merged: Yes


Type of change

  • Bug fix
  • New feature development
  • Tech debt (refactoring, code cleanup, dependency upgrades, etc)
  • Build/deploy pipeline (DevOps)
  • Other

Objective

There's a NullPointerException ocurring in WebAuthenticatorIntermediateActivity.
This is likely related with WebAuthenticatorCallbackActivity in Android.
As explained in the Microsoft Docs when using this WebAuthenticator on Android we need to add the appropriate query.
This might be the cause of the bug.

<queries>
    <intent>
        <action android:name="android.support.customtabs.action.CustomTabsService" />
    </intent>
</queries>

Code changes

Added the query intent for CustomTabs as it might fix the exception that is occurring in Android WebAuthenticator.

  • AndroidManifest.xml: Added the query

Screenshots

Before you submit

  • Please check for formatting errors (dotnet format --verify-no-changes) (required)
  • Please add unit tests where it makes sense to do so (encouraged but not required)
  • If this change requires a documentation update - notify the documentation team
  • If this change has particular deployment requirements - notify the DevOps team
**Original Pull Request:** https://github.com/bitwarden/android/pull/3071 **State:** closed **Merged:** Yes --- ## Type of change - [x] Bug fix - [ ] New feature development - [ ] Tech debt (refactoring, code cleanup, dependency upgrades, etc) - [ ] Build/deploy pipeline (DevOps) - [ ] Other ## Objective There's a `NullPointerException` ocurring in `WebAuthenticatorIntermediateActivity`. This is likely related with `WebAuthenticatorCallbackActivity` in Android. As explained in the [Microsoft Docs](https://learn.microsoft.com/en-us/dotnet/maui/platform-integration/communication/authentication?view=net-maui-8.0&tabs=android) when using this WebAuthenticator on Android we need to add the appropriate query. This might be the cause of the bug. ``` <queries> <intent> <action android:name="android.support.customtabs.action.CustomTabsService" /> </intent> </queries> ``` ## Code changes Added the query intent for CustomTabs as it might fix the exception that is occurring in Android WebAuthenticator. * **AndroidManifest.xml:** Added the query ## Screenshots <!--Required for any UI changes. Delete if not applicable--> ## Before you submit - Please check for formatting errors (`dotnet format --verify-no-changes`) (required) - Please add **unit tests** where it makes sense to do so (encouraged but not required) - If this change requires a **documentation update** - notify the documentation team - If this change has particular **deployment requirements** - notify the DevOps team
GiteaMirror added the pull-request label 2025-11-26 23:39:33 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/android#4006