Update Current Location (iOS)
Call the method to update the current location of a user.
Using the updateCurrentLocation
method, you can update the user's current location. You can set the accuracy between 5 and 100 meters (default is 10).
You can now send custom meta-data JSON values along with updateCurrentLocation
method.
// update current location without meta-data
Roam.updateCurrentLocation(accuracy)
// update the current location with meta-data
// Declare meta-data
let publish = RoamPublish()
let metaData:Dictionary<String,Any> = ["key":value]
publish.meta_data = metaData
Roam.updateCurrentLocation(accuracy, publish)
Last updated
Was this helpful?