MCPcopy Create free account
hub / github.com/Iterable/react-native-sdk / trackInAppOpen

Method trackInAppOpen

src/core/classes/Iterable.ts:579–590  ·  view source on GitHub ↗

* Create an `inAppOpen` event for the specified message on the current user's profile * for manual tracking purposes. Iterable's SDK automatically tracks in-app message opens when you use the * SDK's default rendering. * * @param message - The in-app message (an {@link IterableInAppMessa

(
    message: IterableInAppMessage,
    location: IterableInAppLocation
  )

Source from the content-addressed store, hash-verified

577 * these events by calling this method.
578 */
579 static trackInAppOpen(
580 message: IterableInAppMessage,
581 location: IterableInAppLocation
582 ) {
583 if (!message?.messageId) {
584 IterableLogger?.log(
585 `Skipping trackInAppOpen because message ID is required, but received ${message}.`
586 );
587 return;
588 }
589 IterableApi.trackInAppOpen({ message, location });
590 }
591
592 /**
593 * Create an `inAppClick` event for the specified message on the current user's profile

Callers

nothing calls this directly

Calls 2

logMethod · 0.80
trackInAppOpenMethod · 0.65

Tested by

no test coverage detected