Faking location in Android and iOS to discover Virtual/GPS locations: Difference between revisions

m
(Created page with " = For Android devices = You can use one of the applications in Google Play that change your GPS location entering the coordinates (latitude, longitude). We have been using [h...")
 
Line 7: Line 7:
We have not been able to find any app to fake the location so we are doing it using the Xcode to simulate it. Steps to follow:
We have not been able to find any app to fake the location so we are doing it using the Xcode to simulate it. Steps to follow:
* Pre-requisites:
* Pre-requisites:
** Project Magnet for iOS installed
** Project Magnet for iOS installed (More [https://github.com/mozilla-magnet/magnet/wiki/Building-Magnet-client info] to build a Magnet iOS build)
** Phone has to be connected to the laptop and the Xcode simulator must be used to debug the Magnet app (e.g Execute in the Xcode menu "Product"/"Perform Action"/"Run without building"
** Phone has to be connected to the laptop and the Xcode simulator must be used to debug the Magnet app (e.g Execute in the Xcode menu "Product"/"Perform Action"/"Run without building"
* Steps:
* Steps:
** Create a GPX file (e.g  ) and enter the location/coordinates you want to fake
** Create a GPX file and enter the location/coordinates you want to fake. Example of the content of the file:
 
<gpx>
    <wpt lat="51.498594" lon="-0.133106"></wpt>
</gpx>
 
** Execute in the Xcode menu "Debug"/"Simulate Location"/"Add GPX File to Project" and pick up the GPX file you have created
** Execute in the Xcode menu "Debug"/"Simulate Location"/"Add GPX File to Project" and pick up the GPX file you have created
** Execute in the Xcode menu "Debug"/"Simulate Location" and check your GPX file
** Execute in the Xcode menu "Debug"/"Simulate Location" and check your GPX file
** After that, refresh project Magnet application (scrolling down the main screen of the app) so you can see the Virtual Beacons around to the new location you are faking
** After that, refresh project Magnet application (scrolling down the main screen of the app) so you can see the Virtual Beacons around to the new location you are faking
Confirmed users
1,225

edits