tns plugin add nativescript-cleartap
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>
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"/>
import { cleverTap } from 'clevertap-react-native';
cleverTap.pushEvent('testEvent', { attr1 : "val1"});
cleverTap.updateProfile({'Name': 'testUserA1', 'Identity': '123456', 'Email': '[email protected]', 'custom1': 123});
Implement all the methods that are available in the sdk.
Pull requests are always welcome!
Apache License Version 2.0, January 2004