quickstart-react-native
quickstart-react-native copied to clipboard
React Native Quickstart app for HyperTrack SDKs
React Native Quickstart for HyperTrack SDK
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 React Native app that has everything you need to get started.
For information about how to get started with React Native SDK, please check this Guide.
How to get started?
Create HyperTrack Account
Sign up for HyperTrack and get your publishable key from the Setup page.
Setup the environment
You need to set up the development environment for React Native
Setup the project
- run
yarn
- run
npx pod install
Set your publishable key
Follow the instructions on setting up publishable key in our docs
Setup silent push notifications
Follow the instructions on setting up silent push notifications in our docs.
HyperTrack SDK needs Firebase Cloud Messaging and APNS to manage on-device tracking as well as enable using HyperTrack cloud APIs from your server to control the tracking.
Run the app
- Android: run
npx react-native run-android
- iOS: run
npx react-native run-ios
Grant permissions
Grant required permissions to the app
Start tracking
Press Start tracking
button.
To see the device on a map, open the HyperTrack dashboard.
The app will create a driver with driver handle test_driver_quickstart_react_native_<your platform>
Support
Join our Slack community for instant responses. You can also email us at [email protected]