*Configure Framework
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.
If you want to disable or enable tracking, you can use property disableTracking of RPEntry class
Objective-C
Swift
[RPEntry instance].disableTracking = NO; //enable tracking
[RPEntry instance].disableTracking = YES; //disable tracking
RPEntry.instance().disableTracking = NO; //enable tracking
RPEntry.instance().disableTracking = YES; //disable tracking
Disable tracking doesn't disable SDK and it continues to send heartbeats ( Dataset). If you want to completely disable SDK, you should remove the Device Token
👉
You can't set an empty or nil token
Objective-C
Swift
[RPEntry instance].disableTracking = YES; //disable tracking
[[RPEntry instance] removeVirtualDeviceToken]; //remove token.
RPEntry.instance().disableTracking = YES; //disable tracking
RPEntry.instance().removeVirtualDeviceToken(); //remove token.
Bluetooth OBD/ELM functionality enables the host app to work with Bluetooth OBD devices to get in-vehicle data (Dataset). To enable this, please use the method below:
👉
Objective-C
Swift
[RPEntry enableELM:true];
RPEntry.enableELM(true)
We strongly recommend keeping it enabled by default
Objective-C
Swift
[RPEntry enableHF:true];
RPEntry.enableHF(true)
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>
Objective-C
Swift
if ([ASIdentifierManager sharedManager].isAdvertisingTrackingEnabled) {
[RPEntry instance].advertisingIdentificator = [ASIdentifierManager sharedManager].advertisingIdentifier;
}
if (ASIdentifierManager.shared().isAdvertisingTrackingEnabled) {
RPEntry.instance().advertisingIdentifier = ASIdentifierManager.shared().advertisingIdentifier
}
Last modified 2yr ago