T
T
Teliver
Search…
Integration
Now let’s witness the magical spells
  • Initiate our SDK by adding the following code snippet in your Appdelegate class
Swift
obj-c
1
let teliver=TeliverSettings.init(withAppKey: "TELIVER_KEY")
2
Teliver.init(withTeliverSettings: teliver)
Copied!
1
TeliverSettings* settings = [[TeliverSettings alloc]initWithAppKey:@"TELIVER_KEY"];
2
[[Teliver alloc]initWithTeliverSettings:settings];
Copied!
Note: You can get the Teliver key from our dashboard.
  • Next, setting-up the consumer side in order to receive location updates.
Swift
obj-c
1
let startTracking = TeliverTracker.init(forTrackingId: "Tracking_Id")
2
Teliver.startTrackingFor(user: startTracking, withNavigationTitle: "Location Tracking")
Copied!
1
TeliverTracker *tracker = [[TeliverTracker alloc]initForTrackingId:@"Tracking_Id"]];
2
[Teliver startTrackingForUser:tracker withNavigationTitle:@"Location Tracking"];
Copied!
Note: The Tracking_Id here is same as the id you given in previous step of operator start trip.
Ref: The above view will appear on calling startTracking Yay!! That’s all... Now you can track an Operator.
Copy link