Skip to content

Get HyperTrack data directly on your Android app to build views

Notifications You must be signed in to change notification settings

hypertrack/sdk-views-android

Repository files navigation

Android Views SDK

The Android Views SDK is used for getting live location and movement data for devices and trips directly to your Android app. This module subscribes to HyperTrack's GraphQL server end points to get data streams and then renders it in useful callbacks for app developers to build beautiful tracking experiences. This helps developers creating live location views go serverless. Their app users can directly get data securely and privately from the HyperTrack servers.

Integrate the Views SDK

Check the Integration Guide

Frequently Asked Questions

Supported versions

Currently we do support all of the Android versions starting from API 19 (Android 4.4 Kit Kat)

Get device id

Device id is a way to reference particular device, that is tracked by HyperTrack SDK. Generally, it's your application logic which devices should be displayed and how to filter/prioritize/select the one you need to track. If you have doubts regarding how to integrate HyperTrack SDK - look into corresponding quickstart section. Once integration is done, device id can be obtained via HyperTrack.getDevcieid() call on initialized SDK.

Not Only Views in Views

Although view is associated with something, that should be visual, here it means view on data, that you retrieve from HyperTrack SDK. Tricky part is that application success nowadays is highly dependends on quality of user experience, that is hardly achievable without fine-grained tuning of UI elements. So using real-time data pushed to your device, you can build exactly the same views you really want. Anyway, ready to use UI elements will be added to upcoming library releases.

Track multiple devices

You can subscribe to more than one device by executing subscribeToDeviceUpdates multiple times with different device ids. Subscription updates consumer can be the same (e.g. map fragment), since each update has device id field for identification.

Trips Tracking

Each trip has a device id, for which it was created, pass that id to subscribeToDeviceUpdates and you'll receive all the trip recalculations and delays into onTripUpdateReceived callback.

Battery State Constants

Using enums in Android is discouraged, so we're using numerical values to represent BatteryState. Check out reference for exact values meaning.

About

Get HyperTrack data directly on your Android app to build views

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages