Jump to top

in-app-messaging

interface

The Firebase In-App Messaging service interface.

This module is available for the default app only.

Example

Get the In-App Messaging service for the default app:

const defaultAppInAppMessaging = firebase.inAppMessaging();

Properties

app

</>

The current FirebaseApp instance for this Firebase service.

app: FirebaseApp;

isAutomaticDataCollectionEnabled

</>

Determines whether automatic data collection is enabled or not.

isAutomaticDataCollectionEnabled: boolean;

isMessagesDisplaySuppressed

</>

Determines whether messages are suppressed or not.

isMessagesDisplaySuppressed: boolean;

Methods

setAutomaticDataCollectionEnabled

</>

Enable or disable automatic data collection for Firebase In-App Messaging.

setAutomaticDataCollectionEnabled(enabled: boolean): Promise<null>;

setMessagesDisplaySuppressed

</>

Enable or disable suppression of Firebase In App Messaging messages.

setMessagesDisplaySuppressed(enabled: boolean): Promise<null>;

triggerEvent

</>

Trigger in-app messages programmatically

triggerEvent(eventId: string): Promise<null>;