SDK Configuration (iOS)

The first step is to configure the iOS SDK.

Set Tracking in AppState

Roam.setTrackingInAppState(STATE)

Parameter

Description

STATE

RoamTrackingState.Foreground (or) RoamTrackingState.Background (or)

RoamTrackingState.AlwaysOn

Offline Location Tracking

Roam.offlineLocationTracking(Bool)

Parameter

Description

Bool

true (default) -- Offline location enabled. false -- Offline location disabled.

Accuracy Engine

For enabling accuracy engine for Passive, Active, and Balanced tracking,

Roam.enableAccuracyEngine()

For Custom tracking modes, you can pass the desired accuracy values in integers ranging from 1-150m.

Roam.enableAccuracyEngine("DESIRED-ACCURACY-VALUE")

For disabling accuracy engine,

Roam.disableAccuracyEngine()

Last updated