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, withouthttporhttps.ROOTLocalServerPortMode: Has one of three values. UseDefaultif the local port is:3000, useNoneif your local server doesn't use a port (for example, if you are using ngrok), useCustomif you need to specify a different port.ROOTLocalServerPortIf 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.