Skip to main content

Function: getMiniappDeeplink()

getMiniappDeeplink(): IDeeplinkResult | null

Defined in: src/core/deeplink.ts:69

Reads miniapp deeplink params from the current URL.

Returns

IDeeplinkResult | null

An object with packageId, version, and the URL key used ("app" or "mapp"), or null if no deeplink params are present.

Example

// Given URL: https://editor.picsart.com/?app=com.picsart.edit.adjust&version=1.0.0
const deeplink = getMiniappDeeplink();
// { packageId: 'com.picsart.edit.adjust', version: '1.0.0', key: 'app' }