Skip to content

spotsenseio/spotsenseSDK-android

Repository files navigation

SpotSense SDK

AndroidX

SpotSenceSdk v.1.0.1 is a migration to androidX and dropping the support of older support library. There are no API changes. If you find any issue migrating to v.1.0.1 , please follow this Guide.

Getting Started

Create an App

  1. Create an app in the SpotSense Dashboard
  2. Download the SpotSense SDK Download the SpotSenseSDK via GitHub or dependency by doing the following
dependencies {
    ...
     implementation 'com.spotsenseio:spotsense:1.0.1'
    ...
}
  1. import spotsense and initialize SpotSense with Client ID and Secret from the Dashboard
import com.spotsense.interfaces.GetSpotSenseData;
import com.spotsense.utils.sportSenseGeofencing.SpotSence;


SpotSence spotSence = new SpotSence(this, "Replace with your client id", "Replace with your client Secret", new GetSpotSenseData() {
            @Override
            public void getSpotSenseGeofencingData(String GeofenceTransactions, String geofenceName) {

            }

            @Override
            public void getSpotSenceBeaconData(String beaconTransactions, String beaconName) {

            }
});
  1. start geofence tracking and location tracking using below function
spotSence.start();
  1. Select your new app and create a rule in the SpotSense Dashboard
  2. Test your rule out in the Android device

Have a question or got stuck? Let us know in the SpotSense Slack Community or shoot us an email (help@spotsense.io). We are happy to help!

NOTE

if you facing Manifest merger failed issue then add tools:replace="android:name" in your manifest application tag.

About

Android SDK for SpotSense

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages