Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@capgo/capacitor-android-inline-install

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@capgo/capacitor-android-inline-install

Capacitor plugin to trigger Android inline install feature.

latest
Source
npmnpm
Version
7.0.1
Version published
Maintainers
1
Created
Source

@capgo/capacitor-android-inline-install

Capgo - Instant updates for capacitor

Trigger the Google Play Inline Install overlay from a Capacitor app.

Note: Inline Install is only available to certain apps that qualify for Premium Growth Tools. See eligibility and program details here: https://play.google.com/console/about/guides/premium-growth-tools/

Install

npm install @capgo/capacitor-android-inline-install
npx cap sync

Usage

import { AndroidInlineInstall } from '@capgo/capacitor-android-inline-install';

// Start inline install for a target app by package name
await AndroidInlineInstall.startInlineInstall({
  id: 'com.example.targetapp',
  referrer: 'campaign=my-campaign', // optional but recommended
  // callerId defaults to your app's package name
  // csl_id: 'your-custom-store-listing-id',
  overlay: true,   // default true
  fallback: true,  // default true: open full Play Store page if overlay unavailable
});

Behavior

  • The plugin attempts to open the Google Play overlay via an intent that targets com.android.vending with a deep link of the form https://play.google.com/d?id=…&referrer=…&listing=… and extras overlay and callerId.
  • If the overlay is not available on the device or for your app, and fallback is true, it opens the full Play Store details page for the target app as a deep link.
  • The promise resolves with { started: true, fallbackUsed: boolean } when an intent is started.
  • The promise rejects with a descriptive error if neither the overlay nor the fallback can be started, or if required parameters are missing.

Supported platforms

  • Android: Supported, subject to Google Play eligibility and device support.
  • iOS/Web: Not supported; the method rejects with an informative error.

API

startInlineInstall(...)

startInlineInstall(options: StartInlineInstallOptions) => Promise<StartInlineInstallResult>

Start an inline install flow using the Google Play overlay.

Note: Only eligible apps can use Inline Install. See: https://play.google.com/console/about/guides/premium-growth-tools/

ParamType
optionsStartInlineInstallOptions

Returns: Promise<StartInlineInstallResult>

Interfaces

StartInlineInstallResult

PropTypeDescription
startedbooleanTrue when the inline install intent has been started.
fallbackUsedbooleanTrue if a fallback deep link was used instead of inline overlay.

StartInlineInstallOptions

PropTypeDescription
idstringPackage name of the app to be installed (target app).
referrerstringReferrer string to pass to Play. Optional but recommended.
callerIdstringPackage name of your app (caller). Defaults to the current app package if omitted.
csl_idstringOptional Custom Store Listing ID.
overlaybooleanWhether to request the Play overlay. Defaults to true.
fallbackbooleanIf true, falls back to full Play Store deep link when overlay unavailable. Defaults to true.

Keywords

capacitor

FAQs

Package last updated on 12 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts