npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@capgo/capacitor-android-inline-install

v8.0.1

Published

Capacitor plugin to trigger Android inline install feature.

Readme

@capgo/capacitor-android-inline-install

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/

Why Android Inline Install?

The only plugin supporting Google Play's Inline Install API - no other Capacitor plugin implements this:

  • In-app installations - Install apps without leaving your app
  • Premium Growth Tool - Access to Google's exclusive promotion features
  • Seamless UX - Overlay install experience keeps users engaged
  • Fallback handling - Automatically falls back to Play Store if overlay unavailable
  • Cross-promotion - Perfect for app families and ecosystem growth

Essential for apps eligible for Google Play Premium Growth Tools and app ecosystem builders.

Documentation

The most complete doc is available here: https://capgo.app/docs/plugins/android-inline-install/

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

Android Inline Install Plugin for triggering Google Play in-app install flows.

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/

| Param | Type | Description | | ------------- | ------------------------------------------------------------------------------- | -------------------------------------- | | options | StartInlineInstallOptions | - Configuration for the inline install |

Returns: Promise<StartInlineInstallResult>

Since: 1.0.0


getPluginVersion()

getPluginVersion() => Promise<{ version: string; }>

Get the native Capacitor plugin version.

Returns: Promise<{ version: string; }>

Since: 1.0.0


Interfaces

StartInlineInstallResult

Result of starting an inline install flow.

| Prop | Type | Description | | ------------------ | -------------------- | ---------------------------------------------------------------- | | started | boolean | True when the inline install intent has been started. | | fallbackUsed | boolean | True if a fallback deep link was used instead of inline overlay. |

StartInlineInstallOptions

Options for starting an inline install flow.

| Prop | Type | Description | | -------------- | -------------------- | -------------------------------------------------------------------------------------------- | | id | string | Package name of the app to be installed (target app). | | referrer | string | Referrer string to pass to Play. Optional but recommended. | | callerId | string | Package name of your app (caller). Defaults to the current app package if omitted. | | csl_id | string | Optional Custom Store Listing ID. | | overlay | boolean | Whether to request the Play overlay. Defaults to true. | | fallback | boolean | If true, falls back to full Play Store deep link when overlay unavailable. Defaults to true. |