Plugins
The HyperTrack SDK version and the plugins versions have to be the same.
HyperTrack SDK Android uses the Plugin architecture to be able to adapt to different dependencies and add configurable logic.
Each HyperTrack SDK Android plugin has the corresponding React Native package to add to your app for corresponding platform.
Adding the plugin to the project will affect only the Android app. If you want to use only the iOS, you don't need to add any of them.
The Android setup for HyperTrack SDK has to include at least one plugin of each of those types:
- Location Services
- Push Service
The Activity Service plugin is optional. It adds motion and activity detection to the worker timeline when the worker grants the Physical activity (ACTIVITY_RECOGNITION) permission, which your app requests at runtime.
Check the plugins list to get the type and description for each of them.
Here is the correspondence between each HyperTrack SDK Android Plugin (it's Maven Artifact ID) and plugins for other platforms:
| Android Plugin ID | React Native Plugin NPM ID |
|---|---|
location-services-google | hypertrack-sdk-react-native-plugin-android-location-services-google |
location-services-google-19-0-1 | hypertrack-sdk-react-native-plugin-android-location-services-google-19-0-1 |
activity-service-google | hypertrack-sdk-react-native-plugin-android-activity-service-google |
push-service-firebase | hypertrack-sdk-react-native-plugin-android-push-service-firebase |