Android Custom Tabs for Unity¶
Add a customized browser experience directly into your Unity game without the maintenance overhead of WebViews or the context switch of external browser redirects. This package brings Android Custom Tabs to Unity developers, making it simple to integrate web content—authentication, patch notes, promotions, social links, legal pages—while providing a better user experience.
What Are Custom Tabs?¶
Custom Tabs are a browser feature that solves the core problem of loading web content in apps. Launching an external browser creates a heavy context switch that disrupts player immersion, while WebViews don't support all features of the web platform, have maintenance overhead, and don't share state with the browser.
Custom Tabs offer a better user experience while keeping players in your app, powered by the user's preferred browser and automatically sharing its state and web features.
Common Use Cases¶
- Authentication: OAuth flows, social sign-in
- Promotions: In-game offers, seasonal events
- Documentation: Patch notes, changelogs, in-game wikis
- Legal: Privacy policy, Terms of Service
- Social: YouTube channels, Discord community, game social media accounts
- Web Content: Any URL you want to open without leaving the game
Key Features¶
- Seamless Theming: Match your game's UI with custom colors and light/dark modes.
- Partial Modes: Bottom-sheet (partial vertical tab) or side-sheet (partial horizontal tab).
- Smooth Animations: Custom enter/exit animations for opening and closing.
- Prefetch: Faster loads with URL prefetching.
- Privacy: Ephemeral browsing.
- Backward Compatible: Automatic feature gating—gracefully handles older Android/Chrome versions.
Requirements¶
- API 21 (Android 5.0) or higher
- androidx.browser:browser:1.2.0 or higher
Navigate the Docs¶
| I want to... | Go to |
|---|---|
| Set up the package | Getting Started |
| Learn the full API | API Overview |
| Fix issues | Troubleshooting |