1.6.0 • Published 4 years ago

reactnative-plugin-appice-test v1.6.0

Weekly downloads
14
License
MIT
Repository
github
Last release
4 years ago

reactnative-plugin-appice-test

Getting started

$ npm install reactnative-plugin-appice-test --save

Mostly automatic installation

$ react-native link reactnative-plugin-appice-test

Usage

iOS

If your Application has a podfile then skip this step otherwise do the following 1. Go to terminal and open ios folder from terminal ( cd projectName/ios ) and type the following command: 2. pod init 3. This will create a podfile

Once you have a podfile, open the podfile add these lines in the target section (used for building the application) of the podfile: 1. pod 'reactnative-plugin-appice-test', :path => '../node_modules/reactnative-plugin-appice-test/reactnative-plugin-appice.podspec'

After adding these lines do the following steps: 1. Go to terminal and open ios folder from terminal ( cd projectName/ios ) and type the following command: 2. pod install 3. Go to the Products section and do a clean build 4. Run your project (Cmd+R)

Android

  1. Append the following lines to android/settings.gradle:
    include ':reactnative-plugin-appice-test'
    project(':reactnative-plugin-appice-test').projectDir = new File(rootProject.projectDir,     '../node_modules/reactnative-plugin-appice-test/android')
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
    compile project(':reactnative-plugin-appice-test')

javascript

import AppIceReactPlugin from 'reactnative-plugin-appice';

Usage

To start appice SDK

AppIceReactPlugin.startContext('appID', 'appKey', 'apiKey', 'deviceID');

To send events via appice

AppIceReactPlugin.tagEvent('EventName', { key>: 'value'});

To set the variable via appice

AppIceReactPlugin.setCustomVariable('key', 'customValue');

To set userID

AppIceReactPlugin.setUserId('clientId');

1.6.0

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago