If you can track your Uber turn-by-turn with an accurate ETA, why not track friends, colleagues, buyers, and sellers similarly! Facebook Messenger and Google Maps recently added live location sharing to their apps. Now it’s your turn.
This open source repo uses HyperTrack to enable location sharing and real-time tracking of your friends and family. Scrape parts of this app to add live location sharing into your own app, or fork the repo and modify it to your own need to build your own brand new app.
If you want to experience the app or share live location amongst your friends & family, get HyperTrack Live from the Play Store.
Follow this step-by-step tutorial that will walk you through how you can embed this code in your app.
-
Clone the project.
-
Get your HyperTrack API keys here, and add the publishable key to key.properties file.
-
Get the Google Maps API key and add it to api-keys.xml.
-
To release the app on the Play Store, you will have to change the app's package name.
- Change the package name in the AndroidManifest.xml file.
- Refactor the name of your package with right click → Refactor → Rename in the tree view, then Android Studio will display a window, select "Rename package" option.
- Change the application id in the build.gradle file. Once done, clean and rebuild the project.
-
The HyperTrack SDK requires FCM/GCM for a battery efficient real-time tracking experience. Refer to the FCM Integration guide.
- Uncomment
HyperTrackLiveFCMListenerService
service tag in the AndroidManifest.xml file. - Uncomment the HyperTrackLiveFCMListenerService file.
- After setting up your account on the Firebase console, you will need to add the google-services.json file to your app.
- Uncomment
apply google-services plugin
in build.gradle file.
- Uncomment
-
You can also enable the crashlytics crash reporting tool. Get your Crashlytics key, see the section Add Your API Key from here and you can copy your API Key, and paste the key to fabric.properties and uncomment the code AndroidManifest.xml. This is optional it won't affect your integration.
For detailed documentation of the APIs, customizations and what all you can build using HyperTrack, please visit the official docs.
Feel free to clone, use, and contribute back via pull requests. We'd love to see your pull requests - send them in! Please use the issues tracker to raise bug reports and feature requests.
We are excited to see what live location feature you build in your app using this project. Do ping us at help@hypertrack.io once you build one, and we would love to feature your app on our blog!
Join our Slack community for instant responses, or interact with our growing community. You can also email us at help@hypertrack.com.