Tracking Profiles

Start/Stop a tracking profile using Android SDK

  1. Start/Stop a preset tracking profile
  2. Custom tracking profile

Tracking profiles aim to simplify the Woosmap Geofencing SDK integration.

The concept of Tracking profile and the difference between each profile is explained in the Tracking profiles documentation

Start/Stop a preset tracking profile

Once you have initialized the SDK and the user has authorized background permissions, you can start tracking the user’s location.

To start tracking, call:

woosmap.startTracking( Woosmap.ConfigurationProfile.passiveTracking );

Preset tracking profile details are listed in the Tracking properties page.

Live tracking profile can’t be started while running in the background.

To stop tracking, call:

woosmap.stopTracking();

Overload a tracking properties

Each Tracking profile is defined in a Json file. If you need to adapt it to your specific use case, you can simply modify the Json file.

Some property has overload method like SearchAPIRequestEnable property:

WoosmapSettings.searchAPIEnable = true

Custom tracking profile

If preset tracking profiles don’t fit with your use cases, you can build your own profile and uses the startCustomTracking() method. There are two way to host the json file:

Local way:

String path = "customProfile.json";
Woosmap.getInstance().startCustomTracking(path);

External way:

String path = "https://hostname/path/conf.json";
Woosmap.getInstance().startCustomTracking(path);

Build a custom tracking profile

Define tracking properties in a Json file that respect the Json Schema in the Tracking properties page.

Was this article helpful?
Have more questions? Submit a request