Analyse & resolve your issues.


  • Android 4.2 (API level 16) and above

  • Devices that support GPS. Devices with only A-GPS are not supported

Install SDK Manual

Download and unzip the GeoSpark SDK.

The package contains an aar file. In Android Studio, add the SDK as a module using File > New Module > Import .JAR/.AAR Package. Once Gradle is finished, click File > Project Structure again. Click on App, then Dependencies tab, then click the plus icon in the bottom left, select Module Dependency, click on GeoSpark, then press Ok and wait for Gradle to sync again and include the dependencies separately and sync your project.

android {
targetSdkVersion 28
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
dependencies {
implementation 'android.arch.lifecycle:extensions:1.1.1'
implementation ''
implementation 'com.firebase:firebase-jobdispatcher:0.8.5'
implementation 'com.squareup.retrofit2:retrofit:2.4.0'
implementation ''
implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
implementation 'ch.acra:acra-http:5.2.0'

Set up Firebase

If you haven't already, then add Firebase to your Android project.

public class MyFirebaseInstanceIDService extends FirebaseInstanceIdService {
public void onTokenRefresh() {
String refreshToken = FirebaseInstanceId.getInstance().getToken();
if (refreshToken != null) {
GeoSpark.setDeviceToken(getApplicationContext(), refreshToken);
<service android:name=".MyFirebaseInstanceIDService">
<action android:name=""/>

Customize Notification

Android O is coming up with restrictions on background updates, GeoSpark SDK needs use of Foreground service to send location updates. This will not lead to a persistent Foreground notification in the status bar. You can customize small icon and title in this notification.

GeoSpark.setNotificationIconAndText(this, smallIconId, title);






Resource id for small icon of notification



Title of notification