clearLocation()
Description
The command gives the ability to reset the device’s location services after the user executes the SeeTestAutomation- SetLocation command.
Notes:
- In Android, command supported since Android 4.4.
- Pre-requests: Enable the location provider service you wish to work with, by:
- For Android:
- SetProperty. For example:
if you want to the command to work based on GPS only .i.e. 'Device Only Mode', prior to clearLocarion, you can call:
client.setProperty("location.service.gps", "true"); client.setProperty("location.service.network", "false");
if you want to the command to work based on GPS and Network .i.e. 'High Accuracy Mode', prior to clearLocarion, you can call:
client.setProperty("location.service.gps", "true"); client.setProperty("location.service.network", "true");
- SetProperty. For example:
- For iOS:
on your device: Go to: Setting >> Privacy >> Location Services >> enable "Locations Services".
- For Android:
Code Examples
Java Example
client.clearLocation();