Working with the simulator

Customise your route

  1. Create a route on Google Maps

../../../_images/create-google-maps-route.png
  1. Grab the Google Maps url, open GPSVisualiser and generate your GPX file

../../../_images/generate-gpx-file-with-gpsvisualiser.png
  1. Make the appropriate changes in your GPX file

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<gpx version="1.1" creator="Xcode">
    <wpt lat="-31.89289" lon="115.76055"></wpt>
    <wpt lat="-31.89281" lon="115.76019"></wpt>
    <wpt lat="-31.94999" lon="115.84606"></wpt>
</gpx>
../../../_images/gpx-file-example.png
  1. Add your GPX file in your project Simulate Location > Add GPX file to Project

../../../_images/simulate-route-from-gpx-files-1.png
  1. Build your code, run it on the simulator and select Simulate Location > {your_gpx_file} in order to start the route from your GPX file

../../../_images/simulate-route-from-gpx-files-2.png

Use XCode Location from the simulator

You can also use Location simulation and freeway drive (from the simulator) in order to test background modes and Significant Location Changes

  1. Create some geofences along the freeway

../../../_images/create-geofences-along-freeway.png
  1. Run the simulator and start the freeway drive

../../../_images/simulate-freeway-drive.png
  1. Visualise your drive on the freeway

../../../_images/visualise-freeway-drive-1.png ../../../_images/visualise-freeway-drive-2.png
  1. Observe notifications coming through in foreground, background and when the app is terminated (notifications)

../../../_images/example-notification-background-and-slc.png