@ua/react-native-airship
    Preparing search index...

    Class AirshipRoot

    Airship

    Index

    Constructors

    Properties

    analytics: AirshipAnalytics
    android: AirshipRootAndroid

    iOS only accessors

    featureFlagManager: AirshipFeatureFlagManager

    iOS only accessors

    messageCenter: AirshipMessageCenter
    preferenceCenter: AirshipPreferenceCenter
    privacyManager: AirshipPrivacyManager

    Methods

    • Returns the deep link that launched the app from a notification tap, or null if the app was not launched by a notification with a deep link.

      Only reflects a cold app launch or background-to-foreground launch triggered by the tap. A notification tapped while the app is already in the foreground will not be returned here; use the EventType.DeepLink listener below for that case.

      One-shot: the value is consumed on read. Intended to be wired as React Navigation's linking.getInitialURL, with an EventType.DeepLink listener as linking.subscribe:

      const linking = {
      prefixes: ['myapp://'],
      getInitialURL: () => Airship.getLaunchDeepLink(),
      subscribe: (listener) => {
      const subscription = Airship.addListener(
      EventType.DeepLink,
      (event) => listener(event.deepLink)
      );
      return () => subscription.remove();
      },
      };

      Returns Promise<string | null | undefined>

      A promise with the launching deep link, or null.

    • Checks if Airship is ready.

      Returns Promise<boolean>

      A promise with the result.

    • Calls takeOff. If Airship is already configured for the app session, the new config will be applied on the next app init.

      Parameters

      Returns Promise<boolean>

      A promise with the result. true if airship is ready.