Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.transistorsoft:background-geolocation-lt:1.4.0'
}
dependencies {
implementation("com.github.transistorsoft:background-geolocation-lt:1.4.0")
}
<dependency>
<groupId>com.github.transistorsoft</groupId>
<artifactId>background-geolocation-lt</artifactId>
<version>1.4.0</version>
</dependency>
libraryDependencies += "com.github.transistorsoft" % "background-geolocation-lt" % "1.4.0"
:dependencies [[com.github.transistorsoft/background-geolocation-lt "1.4.0"]]
The most sophisticated background location-tracking & geofencing SDK with battery-conscious motion-detection intelligence for iOS and Android.
The SDK uses motion-detection APIs (accelerometer, gyroscope, magnetometer) to detect when the device is moving or stationary:
distanceFilter (metres)See /example — example apps are included in this repo.
[!TIP] The SDK is fully functional in
DEBUGbuilds — no license required. Try before you buy.
A license is required for App Store (iOS) and Release (Android) builds. Purchase a license
| Platform | Package |
|---|---|
| <img src="assets/images/platforms/swift.svg" width="16" height="16"> Swift / iOS | This repo |
| <img src="assets/images/platforms/kotlin.svg" width="16" height="16"> Kotlin / Android | This repo |
| <img src="assets/images/platforms/react-native.svg" width="16" height="16"> React Native | react-native-background-geolocation |
| <img src="assets/images/platforms/expo.svg" width="16" height="16"> Expo | react-native-background-geolocation |
| <img src="assets/images/platforms/flutter.svg" width="16" height="16"> Flutter | flutter_background_geolocation |
| <img src="assets/images/platforms/capacitor.svg" width="16" height="16"> Capacitor | @transistorsoft/capacitor-background-geolocation |
| <img src="assets/images/platforms/cordova.svg" width="16" height="16"> Cordova | cordova-background-geolocation-lt |
MIT © Transistor Software