Data Collection

Types of data collected by the SDK.

Data collection can be disabled at the SDK level to prevent the collection of any data (with the exception of the data collection opt-in status). Disabling data collection disables all features of the SDK.

Data collected in the SDK

 Note

The data collected in the SDK is not used to track users across apps.

Any feature enabled

If any feature is enabled, the SDK will collect and send the following data:

  • Channel ID
  • Locale
  • TimeZone
  • Platform
  • Opt in state (push and notifications)
  • SDK version
  • Accengage Device ID (Accengage module for migration)

In-app automation enabled

In addition to the default data collection when any feature is enabled, In-App Automation will also collect:

  • App Version (App update triggers)

Message center enabled

In addition to the default data collection when any feature is enabled, Message Center will also collect:

  • Message Center User
  • Message Reads & Deletes

Push enabled

In addition to the default data collection when any feature is enabled, push will also collect:

  • Push tokens

Chat enabled

In addition to the default data collection when any feature is enabled, Airship Chat will also collect:

  • User messages

Analytics enabled

In addition to the default data collection when any feature is enabled, analytics will also collect:

  • Events
  • Associated Identifiers
  • Registered Notification Types
  • Time in app
  • App Version
  • Device model
  • Device manufacturer
  • OS version
  • Carrier
  • Connection type
  • Framework usage

Tags and attributes enabled

In addition to the default data collection when any feature is enabled, tags and attributes will also collect:

  • Channel and Contact Tags
  • Channel and Contact Attributes

Contacts enabled

In addition to the default data collection when any feature is enabled, contacts will also collect:

  • External ids (named user)

Location enabled

In addition to the default data collection when any feature is enabled, location will also collect:

  • Location permissions
  • Collect location for the app (Airship no longer supports uploading location as events)

Disabling data collection on the React-native platform requires setting configurations files for both the iOS and Android native SDKs.

Config Instructions

Data collection can be disabled at the native SDK level by following the platform-specific data collection guides:

Enabling features at runtime

To enable full Airship functionality at runtime, make the following call:

Enabling all features
  import { Feature } from 'urbanairship-react-native';
  UrbanAirship.enableFeature([Feature.FEATURE_ALL]);

To enable individual features, provide the associated option as shown below:

Enabling Push
  UrbanAirship.enableFeature([Feature.FEATURE_PUSH]);
Enabling Message Center
  UrbanAirship.enableFeature([Feature.FEATURE_MESSAGE_CENTER]);
Enabling Analytics
  UrbanAirship.enableFeature([Feature.FEATURE_ANALYTICS]);
Enabling In-App Automation
  UrbanAirship.enableFeature([Feature.FEATURE_IN_APP_AUTOMATION]);
Enabling Chat
  UrbanAirship.enableFeature([Feature.FEATURE_CHAT]);
Enabling Tags and Attributes
  UrbanAirship.enableFeature([Feature.FEATURE_TAGS_AND_ATTRIBUTES]);
Enabling Contacs
  UrbanAirship.enableFeature([Feature.FEATURE_CONTACTS]);
Enabling Location
  UrbanAirship.enableFeature([Feature.FEATURE_LOCATION]);

You can also enable combinations of features by combining options. For instance, to enable both push and message center:

Enabling a subset of features
  UrbanAirship.enableFeature([Feature.FEATURE_PUSH, Feature.FEATURE_MESSAGE_CENTER]);