HyperTrack lets you add live location tracking to your mobile app. Live location is made available along with ongoing activity, tracking controls and tracking outage with reasons.
This repo contains an example Cordova app that has everything you need to get started.
For information about how to get started with Cordova SDK, please check this Guide.
Sign up for HyperTrack and get your publishable key from the Setup page.
Run npm install
Quickstart app uses CocoaPods dependency manager to install the latest version of the iOS SDK. Using the latest version of CocoaPods is advised.
If you don't have CocoaPods, install it first.
cd ios
pod install
Add build params to quickstart-cordova/platforms/android/gradle.properties
:
cdvSdkVersion=31
Follow the instructions for setting the publishable key for iOS and Android.
HyperTrack SDK needs Firebase Cloud Messaging to manage on-device tracking as well as enable using HyperTrack cloud APIs from your server to control the tracking.
Run cordova build
Run cordova run android
Open the app's workspace file (/ios/QuickstartCordova.xcworkspace
) with Xcode.
Select your device (SDK requires real device, it won't work using simulator) and hit Run.
Set Build Settings > Swift Compiler - Language > Swift version
to the latest version
Grant location and activity permissions (choose "Always Allow" for location).
Press Start tracking
button.
To see the device on a map, open the HyperTrack dashboard.
Join our Slack community for instant responses. You can also email us at help@hypertrack.com