*Configure Framework

Set up Device Token (Log in)/ Remove Device Token (Log out)

if ([self userIsAuthenticated]) {
    [RPEntry instance].virtualDeviceToken = [self getDeviceToken];
} else {
    /// empty device token is not allowed
    /// Use removeVirtualDeviceToken method for log out from the host app.
    [[RPEntry instance] removeVirtualDeviceToken];
}

You can't set empty or nil token

Use removeVirtualDeviceToken method when the user logs out from the host app.

Enable and disable Tracking (Optional)

If you want to disable or enable tracking, you can use property disableTracking of RPEntry class

[RPEntry instance].disableTracking = NO;  //enable tracking
[RPEntry instance].disableTracking = YES; //disable tracking

Enable and disable SDK (Optional)

You can't set an empty or nil token

[RPEntry instance].disableTracking = YES;           //disable tracking
[[RPEntry instance] removeVirtualDeviceToken];      //remove token. 

Enable Bluetooth OBD/ELM Functionality

[RPEntry enableELM:true]; 

Enable high-frequency data collection (Accurate and persistent dataset)

We strongly recommend keeping it enabled by default

[RPEntry enableHF:true];

Enable Advertisement identifier

To enable Ads identifier, should provide Advertisement identifier to SDK. Please add these lines near the code from the previous section. Make sure, you added import section

#import <AdSupport/AdSupport.h>

if ([ASIdentifierManager sharedManager].isAdvertisingTrackingEnabled) {
    [RPEntry instance].advertisingIdentificator = [ASIdentifierManager sharedManager].advertisingIdentifier;
}

Last updated