Skip to content

Conversation

subhankarmaiti
Copy link
Contributor

This PR fixes Android App Links functionality in the Expo config plugin by adding the required android:pathPrefix attribute to the Android manifest. The issue occurs because the current implementation doesn't specify the path prefix that Android needs for proper App Links handling.

Changes

  • Added android:pathPrefix attribute to the intent filter data element in the Android manifest with the format: /android/${applicationId}/callback
  • Added comprehensive test cases to verify the pathPrefix is correctly set with both default application ID and custom schemes

Fixes

Fixes #1287 - Android App Links not working with react-native-auth0 Expo config plugin

Previously, users had to create custom Expo plugins to add manifest placeholders for App Links to work properly. With this fix, the built-in plugin correctly configures the Android manifest for App Links, eliminating the need for custom workarounds.

Testing

  • Added unit tests that verify the pathPrefix is correctly added
  • All existing tests continue to pass
  • Manually verified that Android App Links redirect correctly to the app after authentication

Additional Notes

This change ensures compatibility with the Auth0 Android SDK's expected callback format and makes the plugin work seamlessly with Android App Links without requiring additional configuration.

@subhankarmaiti subhankarmaiti requested a review from a team as a code owner September 2, 2025 10:37
@subhankarmaiti subhankarmaiti merged commit 967dfa5 into master Sep 2, 2025
3 checks passed
@subhankarmaiti subhankarmaiti deleted the fix/SDK-6620-android-app-links-pathprefix branch September 2, 2025 11:21
NandanPrabhu added a commit that referenced this pull request Sep 29, 2025
* master:
  feat: add Claude Code PR Review workflow for enhanced pull request an… (#1317)
  feat: enhance Auth0Provider with platform-specific initialization and error handling (#1313)
  feat(web): Simplify Setup, Add Session Check & Fix Missing Refresh Token (#1303)
  Fix clearSession operation order to prevent premature user state clearing (#1309)
  Release v5.0.0-beta.6 (#1306)
  fix: concurrent credential storage errors by preventing unnecessary state updates (#1302)
  chore(deps): bump actions/checkout from 4 to 5 (#1272)
  chore(deps): bump actions/download-artifact from 4 to 5 (#1294)
  chore(deps): bump codecov/codecov-action from 5.5.0 to 5.5.1 (#1296)
  fix(docs): added back the docs folder (#1291)
  Release v5.0.0-beta.5 (#1290)
  fix(docs): organize exports into namespaces for better typedocs (#1269)
  fix: add missing clearSession native options (#1289)
  fix(android): add pathPrefix to Android manifest for proper App Links functionality (#1288)
  feat: add organization parameter support to resetPassword API (#1286)
  feat(auth): add `saveCredentials` method to `useAuth0` hook (#1285)
  feat: unify and improve error handling across platforms (#1261)
  chore(deps): bump codecov/codecov-action from 5.4.3 to 5.5.0 (#1279)
@subhankarmaiti subhankarmaiti mentioned this pull request Oct 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Android App Links not working with react-native-auth0 Expo config plugin

2 participants