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
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