Skip to content

feat: ephemeral session on android#1100

Merged
zibs merged 11 commits into
FormidableLabs:mainfrom
Francesco-Voto:feat/ephemeral-android
May 28, 2026
Merged

feat: ephemeral session on android#1100
zibs merged 11 commits into
FormidableLabs:mainfrom
Francesco-Voto:feat/ephemeral-android

Conversation

@Francesco-Voto
Copy link
Copy Markdown
Contributor

@Francesco-Voto Francesco-Voto commented Nov 7, 2025

Description

Adds Android support for androidPrefersEphemeralSession by using AndroidX Browser 1.9.0 and calling setEphemeralBrowsingEnabled when requested.

This raises Android requirements to min SDK 21+, compile SDK 36+, and AGP 8.9.1+.

Verification

  • JS/native tests, lint, package build, and demo Android build passed locally.
  • AVD check confirmed androidPrefersEphemeralSession=true reached native Android and launched a Chrome Custom Tab.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Nov 7, 2025

🦋 Changeset detected

Latest commit: 393dd2c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
react-native-app-auth Minor

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

@vercel
Copy link
Copy Markdown

vercel Bot commented Nov 7, 2025

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

@Francesco-Voto Francesco-Voto changed the title Feat/ephemeral android feat: ephemeral session on android Nov 7, 2025
bryceknz added 5 commits May 27, 2026 15:46
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.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Android support for requesting ephemeral Custom Tabs sessions via androidPrefersEphemeralSession, alongside required AndroidX Browser and build requirement updates.

Changes:

  • Adds androidPrefersEphemeralSession to 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.

Comment thread .changeset/android-ephemeral-session.md Outdated
Comment thread packages/react-native-app-auth/index.spec.js Outdated
Comment thread packages/react-native-app-auth/index.js Outdated
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 8 changed files in this pull request and generated 1 comment.

Comment thread packages/react-native-app-auth/android/build.gradle
@bryceknz bryceknz requested a review from zibs May 28, 2026 08:39
@vercel
Copy link
Copy Markdown

vercel Bot commented May 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-native-app-auth Ready Ready Preview, Comment May 28, 2026 3:15pm

Request Review

Copy link
Copy Markdown
Contributor

@zibs zibs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, y'all!

@zibs zibs merged commit 38152f7 into FormidableLabs:main May 28, 2026
3 checks passed
@github-actions github-actions Bot mentioned this pull request May 28, 2026
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.

4 participants