feat: ephemeral session on android#1100
Conversation
🦋 Changeset detectedLatest commit: 393dd2c The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
@Francesco-Voto is attempting to deploy a commit to the formidable-labs Team on Vercel. A member of the Team first needs to authorize it. |
Raise the fallback Android compile SDK and Gradle plugin versions needed by AndroidX Browser 1.9.0 while leaving runtime SDK settings unchanged.
Fix the Android ephemeral session config entry formatting and note that browser support is required.
Update the Android demo build settings so it can verify the library against AndroidX Browser 1.9.0.
Release the new androidPrefersEphemeralSession option as a minor change and document the Android build requirements from Browser 1.9.0.
There was a problem hiding this comment.
Pull request overview
Adds Android support for requesting ephemeral Custom Tabs sessions via androidPrefersEphemeralSession, alongside required AndroidX Browser and build requirement updates.
Changes:
- Adds
androidPrefersEphemeralSessionto JS config, TypeScript types, docs, and JS native argument tests. - Passes the option through the Android native bridge and applies it to
CustomTabsIntent.Builder. - Updates AndroidX Browser, compile SDK, AGP, demo Android build config, and adds a changeset.
Reviewed changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
packages/react-native-app-auth/index.js |
Adds the Android ephemeral session option and forwards it to native Android. |
packages/react-native-app-auth/index.d.ts |
Exposes the new option in AuthConfiguration. |
packages/react-native-app-auth/index.spec.js |
Updates Android authorize native-call expectations. |
packages/react-native-app-auth/android/src/main/java/com/rnappauth/RNAppAuthModule.java |
Applies ephemeral browsing to the Custom Tabs intent. |
packages/react-native-app-auth/android/build.gradle |
Updates Android build requirements and AndroidX Browser dependency. |
examples/demo/android/build.gradle |
Updates demo compile SDK and AGP version. |
docs/docs/usage/config.md |
Documents the new Android option. |
.changeset/android-ephemeral-session.md |
Adds release notes for the feature and build requirement changes. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Description
Adds Android support for
androidPrefersEphemeralSessionby using AndroidX Browser 1.9.0 and callingsetEphemeralBrowsingEnabledwhen requested.This raises Android requirements to min SDK 21+, compile SDK 36+, and AGP 8.9.1+.
Verification
androidPrefersEphemeralSession=truereached native Android and launched a Chrome Custom Tab.