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.
- Create an app in the SpotSense Dashboard
- Download the SpotSense SDK Download the SpotSenseSDK via GitHub or dependency by doing the following
dependencies {
...
implementation 'com.spotsenseio:spotsense:1.0.1'
...
}import spotsenseand 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) {
}
});- start geofence tracking and location tracking using below function
spotSence.start();- Select your new app and create a rule in the SpotSense Dashboard
- 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!
if you facing Manifest merger failed issue then add tools:replace="android:name" in your manifest application tag.