Ionic Framework 4 is almost here. Preview the beta docs and try it out now! Try Ionic 4 Beta

TealiumInstallReferrer

Improve this doc

This module depends on the Tealium Cordova Plugin. Without it, this module will not do anything. Implements a Broadcast Receiver for the INSTALL_REFERRER intent.

Repo: https://github.com/Tealium/cordova-plugin

Installation

  1. Install the Cordova and Ionic Native plugins:
    $ ''
    $ npm install --save @ionic-native/tealium-installreferrer
    
  2. Add this plugin to your app's module

Supported platforms

Usage

import { TealiumInstallReferrer } from '@ionic-native/tealium-installreferrer';


constructor(private installReferrer: TealiumInstallReferrer) { }


this.installReferrer.setPersistent("main");
this.installReferrer.setVolatile("main");

Instance Members

setPersistent(instanceName)

This function stores the install referrer information as persistent data

Param Type Details
instanceName string

Your arbitrary Tealium instance name provided at init time

Returns: Promise<any> Returns a promise that resolves when something happens

setVolatile(instanceName)

This function stores the install referrer information as volatile data

Param Type Details
instanceName string

Your arbitrary Tealium instance name provided at init time

Returns: Promise<any> Returns a promise that resolves when something happens

API

Native

General