Google Play overlay
Trigger native Google Play install overlay π±
The Capacitor Android Inline Install plugin enables triggering Google Playβs Inline Install overlay for Android applications. This plugin provides a seamless in-app installation experience using Googleβs Premium Growth Tools, allowing users to install apps without leaving your application.
Google Play overlay
Trigger native Google Play install overlay π±
Seamless experience
Install apps without leaving your app π
Fallback support
Automatic fallback to full Play Store page β€οΈ
Campaign tracking
Support for referrer tracking and analytics π
npm install @capgo/capacitor-android-inline-installnpx cap sync
startInlineInstall(options)
- Trigger Google Play inline install overlay for specified appinterface InlineInstallOptions { id: string; // Target app package name (required) referrer?: string; // Tracking campaign string (optional) callerId?: string; // Caller app package name (defaults to current app) overlay?: boolean; // Enable/disable Play overlay (default: true) fallback?: boolean; // Use full store page if overlay fails (default: true)}
import { AndroidInlineInstall } from '@capgo/capacitor-android-inline-install';
// Basic inline installawait AndroidInlineInstall.startInlineInstall({ id: 'com.example.targetapp'});
// Advanced install with trackingawait AndroidInlineInstall.startInlineInstall({ id: 'com.example.targetapp', referrer: 'campaign=my-campaign&source=app', overlay: true, fallback: true});
// Handle the installation flowtry { await AndroidInlineInstall.startInlineInstall({ id: 'com.spotify.music', referrer: 'utm_source=myapp&utm_campaign=music_promotion' }); console.log('Install overlay triggered successfully');} catch (error) { console.error('Install failed:', error);}
Your app must qualify for Google Playβs Premium Growth Tools to use inline install:
The plugin uses Android intents to communicate with Google Play Store:
Check the complete documentation for detailed implementation guides and advanced integration patterns.