To help familiarize yourself with our library, the tracking methods, and best practice implementation, download the NativeScript sample app.
To run the sample app, run the command npm i to install all dependencies, and then run npm start in the root directory (tealium-nativescript-plugin). Depending on your platform, select apps.demo.android or apps.demo.ios.
There is currently a known issue with NativeScript on iOS where the initial app build fails. To build successfully, open the file .xcworkspace and go to Project > Build Settings > Validate Workspace and set the property to Yes.
To install the Tealium library for NativeScript with NPM:
Navigate to the root of your NativeScript project.
Download and install the @tealium/nativescript-plugin package with the command:
npm i @tealium/nativescript-plugin
After installation, import the Tealium module into your app’s TypeScript code:
See the API Reference for more information and additional configuration options.
Collectors are modules that gather supplemental information from the device and append it to the data layer before it’s transmitted to the Tealium Customer Data Hub. Some collectors are included in the core library, while others are optional and installed as separate modules.
The following table lists the available collectors. Default collectors are denoted by a * next to the collector name.
These modules are enabled or disabled using the TealiumConfigcollectors property.
Dispatchers are modules that send the data from your data layer to a Tealium endpoint. The following dispatchers are currently available:
At least one dispatcher is required. If no dispatchers are specified, no tracking occurs.