Airship config

interface AirshipConfig {
    android?: {
        appStoreUri?: string;
        fcmFirebaseAppName?: string;
        notificationConfig?: NotificationConfig;
    };
    autoPauseInAppAutomationOnLaunch?: boolean;
    default?: ConfigEnvironment;
    development?: ConfigEnvironment;
    enabledFeatures?: Feature[];
    inProduction?: boolean;
    initialConfigUrl?: string;
    ios?: {
        isWebViewInspectionEnabled?: boolean;
        itunesId?: string;
        useUserPreferredLocale?: boolean;
    };
    isChannelCaptureEnabled?: boolean;
    isChannelCreationDelayEnabled?: boolean;
    production?: ConfigEnvironment;
    site?: Site;
    suppressAllowListError?: boolean;
    urlAllowList?: string[];
    urlAllowListScopeJavaScriptInterface?: string[];
    urlAllowListScopeOpenUrl?: string[];
}

Properties

android?: {
    appStoreUri?: string;
    fcmFirebaseAppName?: string;
    notificationConfig?: NotificationConfig;
}

Android config.

Type declaration

  • Optional appStoreUri?: string

    App store URI

  • Optional fcmFirebaseAppName?: string

    Fcm app name if using multiple FCM projects.

  • Optional notificationConfig?: NotificationConfig

    Notification config.

autoPauseInAppAutomationOnLaunch?: boolean

Pauses In-App Automation on launch.

Default environment.

development?: ConfigEnvironment

Development environment. Overrides default environment if inProduction is false.

enabledFeatures?: Feature[]

Enabled features. Defaults to all.

inProduction?: boolean

Switches the environment from development or production. If the value is not set, Airship will determine the value at runtime.

initialConfigUrl?: string

Initial config URL for custom Airship domains. The URL should also be added to the urlAllowList.

ios?: {
    isWebViewInspectionEnabled?: boolean;
    itunesId?: string;
    useUserPreferredLocale?: boolean;
}

iOS config.

Type declaration

  • Optional isWebViewInspectionEnabled?: boolean

    Allows the WebViews to be inspected in Safari.

  • Optional itunesId?: string

    itunesId for rate app and app store deep links.

  • Optional useUserPreferredLocale?: boolean

    If set to true, the SDK will use the preferred locale. Otherwise it will use the app's locale.

isChannelCaptureEnabled?: boolean

Enables channel capture feature. This config is enabled by default.

isChannelCreationDelayEnabled?: boolean

Enables delayed channel creation. Deprecated. Use the Private Manager to disable all features instead.

production?: ConfigEnvironment

Production environment. Overrides default environment if inProduction is true.

site?: Site

Cloud site.

suppressAllowListError?: boolean

Whether to suppress console error messages about missing allow list entries during takeOff. This config is disabled by default.

urlAllowList?: string[]

URL allow list.

urlAllowListScopeJavaScriptInterface?: string[]

URL allow list for JS bridge injection.

urlAllowListScopeOpenUrl?: string[]

URL allow list for open URL scope.