0.1.0 • Published 8 months ago

@trentrand/capacitor-instant v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

@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; }>


0.1.0

8 months ago