This repo contains a sample iOS app that uses the iOS SDK to retrieve a trip token from the Root servers.
See iOS SDK documentation in the Drive Science docs.
To test against a local environment, set the following keys in the info.plist
file of your
application:
ROOTLocalServerIP
: The IP address of your local server, withouthttp
orhttps
.ROOTLocalServerPortMode
: Has one of three values. UseDefault
if the local port is:3000
, useNone
if your local server doesn't use a port (for example, if you are using ngrok), useCustom
if you need to specify a different port.ROOTLocalServerPort
If your port mode isCustom
, specify the port number in this key, otherwise you can leave it blank.
Then set the environment to local when you instantiate the TripTracker, TripTracker(environment: .local)
.
The production environment looks for the server at telematics.api.joinroot.com
, the staging
environment looks for the server at telematics.api.staging.joinroot.com
.