Mocking your location

Another option is to change the location for testing purpose programmatically. For this, the plugin has the following method:

Plot.testLocation() takes either a combination of latitude and longitude, or a Location object.

Changing location using the testLocation method is only available in debug mode. You need to set:

"debug": true

in plotconfig.json before you can use that method. You also need to call it, after Plot plugin is initialized.

To ensure correct workings of the Android plugin, if you travel for a distance of more than 10 km / 6 miles make sure the speed during the test is less than 130 km/h / 80 mph. Otherwise, the plugin may not load the notifications in time.