AppDelegate.swift, and build the app.
Info.plistwith an XML snippet that contains data about your app. You need to add strings for
Info.plistfile to prompt the user during location permissions for foreground location tracking. For background location tracking, you also need to add a string for
NSLocationAlwaysAndWhenInUseUsageDescriptionin the same
roam-ios, then click Finish.
AWSIoTfor fetching locations and its transmission to our servers. The SDK supports iOS 10 and above.
Roam.frameworkto your Xcode project by dragging the file into your Project Navigator.
Embed & Sign
AppDelegatefile. This code imports the SDK and allows the SDK to use other methods.
AppDelegatefile. The SDK must be initialized before calling any of the other SDK methods using your project's publishable key.
CoreLocationat the top of the
application(_:didFinishLaunchingWithOptions:)With this line, you ask users to allow the app to access location data both in the background and the foreground.
networkStateindicates the state in which the updates are to be received. It can either be set to online, offline, or both.
batchCountindicates the size of the location batch.
batchWindowindicates the time interval for every consecutive update (frequency of updates).
, 5 , 60)