nativescript-clevertap
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

NativeScript CleverTap Plugin

Install and Integration

tns plugin add nativescript-cleartap

iOS

Add the following to your Info.plist. under app/App_Resources/iOS

    <key>CleverTapAccountID</key>
    <string>YOUR-TEST-ACCOUNTID</string>
    <key>CleverTapToken</key>
    <string>YOUR-TEST-TOKEN</string>

Android

Add the following to your AndroidManifestxml. under app/App_Resources/Android/src/main

    <meta-data
        android:name="CLEVERTAP_ACCOUNT_ID"
        android:value="YOUR-TEST-ACCOUNTID>"/>

    <meta-data
        android:name="CLEVERTAP_TOKEN"
        android:value="YOUR-TEST-TOKEN"/>

Additional Resources

Example JS Usage

Grab a reference

import { cleverTap } from 'clevertap-react-native';

Record an event

cleverTap.pushEvent('testEvent', { attr1 : "val1"});

Update a user profile

cleverTap.updateProfile({'Name': 'testUserA1', 'Identity': '123456', 'Email': 'test@test.com', 'custom1': 123});

For more:

Road Ahead:

Implement all the methods that are available in the sdk.

Pull requests are always welcome!

License

Apache License Version 2.0, January 2004

Package Sidebar

Install

npm i nativescript-clevertap

Weekly Downloads

2

Version

0.2.3

License

Apache-2.0

Unpacked Size

42.2 kB

Total Files

22

Last publish

Collaborators

  • rajivnarayana