Sync Trip (iOS)

Explore how to sync a trip on iOS with Trips v2.

To sync a trip, you need to pass the tripID with the Roam.syncTrip("tripId") method.

Roam.syncTrip("tripId") { response, error in
  // Access sync trip response
}

You can access the sync trip response parameters below:

ParameterTypeDescription

response?.code

number

The success response code of the method.

response?.message

string

The success response message of the method.

response?.messageDescription

string

Error response description of the method.

response?.tripId

string

Unique identifier for the trip object.

response?.isSynced

boolean

Boolean value to determine if the trip is synced.

Last updated