After installation, you will need to integrate CleverTap SDK into your app.
-
Follow the integration instructions starting with Step 2 here.
-
Initialize CleverTap SDK by adding the following code snippet:
- Import the CleverTap header in your AppDelegate file
#import "CleverTap.h" #import "CleverTapPlugin.h"
import CleverTapSDK import clevertap_plugin
- In your
didFinishLaunchingWithOptions:
method notify the CleverTap Flutter SDK of application launch
[CleverTap autoIntegrate]; // integrate CleverTap SDK using the autoIntegrate option [[CleverTapPlugin sharedInstance] applicationDidLaunchWithOptions:launchOptions];
CleverTap.autoIntegrate() // integrate CleverTap SDK using the autoIntegrate option CleverTapPlugin.sharedInstance()?.applicationDidLaunch(options: launchOptions)
-
Call the following from your Dart.
CleverTapPlugin.registerForPush();