Live Tracking View Sample Consumer application built with the HyperTrack SDK for Android. For iOS go here.
- Android Studio with emulator (or test device)
- HyperTrack API keys. Learn more about them here, and sign up for them here.
- Action ID of the order.
The live tracking view consumer application implements tracking a driver performing a delivery. Read our introduction to know more.
STEPS
-
Clone this repo.
# Clone this repository $ git clone https://github.com/hypertrack/android-live-tracking-view.gitOR
In Android Studio
Goto File > New > Project from Version Control > Git Enter Enter Git Repository URL https://github.com/hypertrack/android-live-tracking-view.git and Click on Clone.
-
Sync the Gradle files to download the HyperTrack SDKs.
-
Replace
YOUR_PUBLISHABLE_KEYwith your Hypertrack API key inLiveTrackingConsumerApplication.javahere. -
Setup a Google Maps API key. More info here and the steps to get an API key are here.
-
Add the API key to the manifest here.
-
Once you assign an Action on the Use Case Android App, get the action ID of order and add into the actions and call
HyperTrack.trackAction. -
Run in emulator or directly on a phone either by connecting to your computer or by creating an APK and then installing it manually. You also will need to follow these steps for the emulator.
For detailed documentation of the methods and customizations, please visit the official docs.
Please use the issues tracker to raise bug reports and feature requests. We'd love to see your pull requests - send them in!
Join our Slack community for instant responses, or interact with our growing Community. You can also email us at [email protected].