Overview

Geofences are virtual boundaries set around real-world geographic areas. They create a perimeter that triggers automated actions or alerts when a mobile device or asset enters, exits, or is used widely in apps for personalised offers and security (like drone no-fly zones). These digital fences use GPS and other location data to define zones (often circular with a set radius) for applications such as sending a coupon when a user approaches a store, tracking a delivery truck's arrival, or locking down a stolen device.

Integrate Geofence

Starting with Smartech SDK version 3.7.6, the BootReceiver is no longer bundled with the SDK. If you use the Geofence feature, you must manually add the receiver to your application code.

Customers upgrading from an earlier Smartech SDK version to 3.7.6 should also include the integration shown below.

<receiver
   android:name="com.netcore.android.geofence.SMTGeofenceBootReceiver"
   android:directBootAware="false"
   android:enabled="true"
   android:exported="false"
   android:permission="android.permission.RECEIVE_BOOT_COMPLETED">


   <intent-filter>
       <action android:name="android.intent.action.LOCKED_BOOT_COMPLETED" />
       <action android:name="android.intent.action.BOOT_COMPLETED" />
       <action android:name="android.intent.action.TIME_SET" />
       <action android:name="android.intent.action.TIMEZONE_CHANGED" />
   </intent-filter>
</receiver>