Jump to top

dynamic-links

interface

The Firebase Dynamic DynamicLinks service is available for the default app only.

Example 1

Get the links instance for the default app:

const links = firebase.dynamicLinks();

Properties

app

</>

The current FirebaseApp instance for this Firebase service.

app: FirebaseApp;

Methods

buildLink

</>

Builds a Dynamic Link from the provided DynamicLinkParameters instances.

buildLink(dynamicLinkParams: DynamicLinkParameters): Promise<string>;

buildShortLink

</>

Builds a short Dynamic Link from the provided DynamicLinkParameters interface.

buildShortLink(dynamicLinkParams: DynamicLinkParameters, shortLinkType?: ShortLinkType): Promise<string>;

createDynamicLink

</>

Deprecated: Creates a link from the provided DynamicLinkParameters interface.

createDynamicLink(dynamicLinkParams: DynamicLinkParameters): Promise<string>;

createShortDynamicLink

</>

Deprecated: Creates a short Dynamic Link from the provided DynamicLinkParameters instances.

createShortDynamicLink(dynamicLinkParams: DynamicLinkParameters, shortLinkType?: ShortLinkType): Promise<string>;

getInitialLink

</>

Returns the Dynamic Link that the app has been launched from. If the app was not launched from a Dynamic Link the value will be null.

getInitialLink(): Promise<DynamicLink | null>;

onLink

</>

Subscribe to Dynamic Link open events while the app is still running.

onLink(listener: Function<DynamicLink>): Function;

Statics

ShortLinkType

</>

Returns the ShortLinkType enum.

dynamic-links.ShortLinkType: ShortLinkType;