The Android SDK collects location and activity data from your mobile app and transmits the payload to LotaData cloud.
The SDK provides methods like
getInstance to enable tracking and
disconnect to disable tracking. Additionally, the SDK provides many utility methods to interact with LotaData's APIs.
The SDK is designed to work under patchy network conditions and gracefully manage offline operation. This is achieved by caching data on the device when the network is unavailable, and queueing network requests for payload delivery under improved network conditions.
SDK Operating Logic
|Network is disconnected||SDK continues to track and queue the data offline, and transmits payload when network quality improves|
|Location is disabled||SDK stops working (in our next release, the SDK will continue to work even if location is disabled)|
|App is in the foreground||SDK can be configured to collect and transmit location and activity data in the foreground, based on use case|
|App is in the background||SDK can be configured to collect and transmit location and activity data in the background,with minimal impact to battery|
|App is closed||SDK can be configured to work even with when app is closed|
SDK Tracking Modes
The SDK provides preconfigured tracking modes for collecting location data. Changes to the tracking mode are persisted through app launches. Under the hood, we use various algorithms to optimize the usage of core services and device sensors, to detect significant changes to the device's location, activity and state.
The SDK has 5 (five) modes to track device location and activity. Each tracking mode is intended for specific use cases, with adequate data collection and proportional battery consumption.
By default, the SDK starts in the
StayDetection tracking mode. This mode is ideal for understanding user behavior patterns, personalizing app content and optimizing delivery of notifications at the right moment.
StayDetection tracking mode also is gentle on the battery.
If the app is in the foreground, the tracking mode transitions to
Hawkeye modes, in order to collect fine resolution data at a relatively faster rate.
Below are the 5 tracking modes for LotaData's SDK:
Platforms and Frameworks
LotaData's SDK is available for below listed platforms and frameworks.
|Platform||Install Method||Current Version|
|Cordova and Ionic||GitHub||0.0.1|
We are eager to hear from you and happy to share best practices for integrating the SDK. There are many ways for you to reach us:
But first, please sign up for an account with LotaData so that we may send you the link to download our SDK.