Advanced
Manual Event
If you want to sync all the events which are tracked by CE SDK and are in the database when the user was offline then you call processEventsManually method which will start the sync of all stored methods from database which were stored when the user was offline.
[[Smartech sharedInstance] processEventsManually];
Smartech.sharedInstance().processEventsManually()
GDPR Opt-in & Opt-out
CEE believes privacy is a fundamental human right, which is why CE SDK has methods to opt-out from tracking user's events, displaying in-app messages, and receiving push notifications sent from the panel.
Opt-Out From Tracking Events, displaying In-App Messaging and receiving Push Notification
To opt-out for tracking of events, display of in-app, and receiving push notifications developer needs to implement the following methods and pass NO/false in the argument.
//Used for tracking
[[Smartech sharedInstance] optTracking:NO];
//Used for In-App
[[Smartech sharedInstance] optInAppMessage:NO];
//Used for Push Notification
[[SmartPush sharedInstance] optPushNotification:NO];
//Used for tracking
Smartech.sharedInstance().optTracking(false)
//Used for In-App
Smartech.sharedInstance().opt(inAppMessage: false)
//Used for Push Notification
SmartPush.sharedInstance().optPushNotification(false)
//Used for tracking
SmartechSDK.optTracking(NO);
//Used for In-App
SmartechSDK.optInAppMessage(NO);
//Used for Push Notification
SmartechSDK.optPushNotification(NO);
To enable tracking of events, display of in-app, and receiving push notifications developer needs to pass YES/true.
//Used for tracking
[[Smartech sharedInstance] optTracking:YES];
//Used for In-App
[[Smartech sharedInstance] optInAppMessage:YES];
//Used for Push Notification
[[SmartPush sharedInstance] optPushNotification:YES];
//Used for tracking
Smartech.sharedInstance().optTracking(true)
//Used for In-App
Smartech.sharedInstance().opt(inAppMessage: true)
//Used for Push Notification
SmartPush.sharedInstance().optPushNotification(true)
//Used for tracking
SmartechSDK.optTracking(YES);
//Used for In-App
SmartechSDK.optInAppMessage(YES);
//Used for Push Notification
SmartechSDK.optPushNotification(YES);
Get the values set for GDPR Compliance
//Check Event Tracking Opt status
BOOL trackingOptStatus = [[Smartech sharedInstance] hasOptedTracking];
//Check Push Notification Opt status
BOOL notificationOptStatus = [[SmartPush sharedInstance] hasOptedPushNotification];
//Check In-App Opt status
BOOL inAppOptStatus = [[Smartech sharedInstance] hasOptedInAppMessage];
//Check Event Tracking Opt status
let trackingOptStatus = Smartech.sharedInstance().hasOptedTracking()
//Check Push Notification Opt status
let notificationOptStatus = SmartPush.sharedInstance().hasOptedPushNotification()
//Check In-App Opt status
let inAppOptStatus = Smartech.sharedInstance().hasOptedInAppMessage()
//Check Event Tracking Opt status
Boolean isTracking = SmartechSDK.hasOptedTracking();
//Check Push Notification Opt status
Boolean isPushNotificationOpted = SmartechSDK.hasOptedPushNotification();
//Check In-App Opt status
Boolean isInAppOpted = SmartechSDK.hasOptedInAppMessage();
Updated 23 days ago