@trentrand/capacitor-instant
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

@trentrand/capacitor-instant

Capacitor plugin to check if Android Instant App or Apple App Clip

Install

npm install @trentrand/capacitor-instant
npx cap sync

API

isInstantApp()

isInstantApp() => Promise<{ value: boolean; }>

Returns whether the app is running as an Android Instant App or iOS App Clip. This value is determined at app initialization and cached.

On Android: Uses PackageManager.isInstantApp() On iOS: Checks for XCAppClipURL environment variable On Web: Always returns false

Returns: Promise<{ value: boolean; }>


/@trentrand/capacitor-instant/

    Package Sidebar

    Install

    npm i @trentrand/capacitor-instant

    Weekly Downloads

    0

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    17.6 kB

    Total Files

    26

    Last publish

    Collaborators

    • trentrand