Clevertap plugin (Android/iOS) for Flutter
Note: This plugin is still under development, and some APIs might not be available yet.
Add your CleverTap Account ID and CleverTap Token in AndroidManifest.xml of your Android project
Add your CleverTap Account ID and CleverTap Token in Info.plist of your iOS project
import 'package:clevertap_flutter/clevertap_flutter.dart';
PushProfile:
ClevertapFlutter.pushProfile('TestName', '[email protected]');
On User Login:
Map<String, dynamic> loginMap = {
"loginParam1": "Param1",
};
ClevertapFlutter.onUserLogin(loginMap);
Push Event With No Params
ClevertapFlutter.pushEvent('No Params Test Event');
Push Event With Params
Map<String, dynamic> paramsMap = {
"version": 2.0,
"name": "TestName",
};
ClevertapFlutter.pushEvent('No Params Test Event', paramsMap);
See the example
directory for a complete sample app using CleverTap Flutter Plugin.