There are a few desktop softwares(like itools) out there that can be used to virtually set the location of the phone anywhere in the world.
I'm very confused on how is this possible? How can your cheat the GPS into making it thinks it's somewhere else?
With a gpx file, you can simulate your location anywhere you like (for testing purposes). You can do this with Xcode when your phone is connected. But there is a bug and it's keep you in that fake location if you pull off the cable without selecting Don't Simulate Location before.
Related
We are looking for a way to send GPS location to iPhone or iPad through bluetooth. The benefits of doing so is that an external GPS device could produce more accurate location than the build-in GPS device in iOS. For our testing purposes, it would also be nice to be able to produce GPS manually by QAs.
We are pretty sure this is possible but we don't know how. We heard about this kind of external GPS device from one of our customers. Simple googling we found this one this device, which does exactly what we are looking for.
We know that it is possible to generate fake GPS location using GPX file through Xcode. Please refer to this SO for more details. But this is not what we are looking for. We don't want to teach the QA how to build and debug with Xcode.
In a nutshell, we want to know how to send GPS location to iOS device via bluetooth. Eventually, we would like to build a simple app (maybe on Mac) and we can set up some GPS locations for testing.
P.S.: A similar question was asked a couple of years ago but it seems very much outdated. This link explains the supported supported bluetooth profiles by Apple. But I don't see anything related.
Any link to sample code or documentation will be very much appreciated. Thank you!
As far as we know, we are not able to send GPS location to our device via Bluetooth. Apple only allow pairing with a small set of known Bluetooth GPS manufactures.
Is there any way to simulate a location on an iOS device without having to run Xcode with gpx files to do so? I'm fluent in swift and objc and would like to make an app simulate a location without running Xcode. The down side is that when you want to simulate a location without being connected to Xcode the app does not continue to simulate the location. Any help would be greatly appreciated!
Sometimes I use a quite ugly hack to do that.
When you have your device connected to the Xcode while simulating location, just remove the lighting cable without killing an app directly.
The app will crash but when you relaunch it you will see it shows the same simualated location despite the fact it's no longer connected to the Xcode.
Note that this is not an elegant approach and to make your device location services work properly again, you have to run an app from Xcode on your device and explicitly set Debug/Simulate Location/Don't Simulate Location
We are looking for a way to send GPS location to iPhone or iPad through bluetooth. The benefits of doing so is that an external GPS device could produce more accurate location than the build-in GPS device in iOS. For our testing purposes, it would also be nice to be able to produce GPS manually by QAs.
We are pretty sure this is possible but we don't know how. We heard about this kind of external GPS device from one of our customers. Simple googling we found this one this device, which does exactly what we are looking for.
We know that it is possible to generate fake GPS location using GPX file through Xcode. Please refer to this SO for more details. But this is not what we are looking for. We don't want to teach the QA how to build and debug with Xcode.
In a nutshell, we want to know how to send GPS location to iOS device via bluetooth. Eventually, we would like to build a simple app (maybe on Mac) and we can set up some GPS locations for testing.
P.S.: A similar question was asked a couple of years ago but it seems very much outdated. This link explains the supported supported bluetooth profiles by Apple. But I don't see anything related.
Any link to sample code or documentation will be very much appreciated. Thank you!
As far as we know, we are not able to send GPS location to our device via Bluetooth. Apple only allow pairing with a small set of known Bluetooth GPS manufactures.
Sometimes I need to demo some apps that are location based. I like using my laptop and want to use if for the demo. I know I can change the location of simulator to not point to California, but is there a way to have cllocationmanager pickup actual location of the laptop?
It's not a matter of having GPS.
You need to look at the iOS Simulator as a virtual machine within osx. Like every virtual machine it has limited capabilities.
So in the current version it's simply not possible - sorry.
To change locations for the debugger, take a look at location debugger:
http://socialbit.de/location-debugger
(Note that I haven't tested this app)
Dont think mac has GPS , like iphone/ipad.
What you could do is harcode the location to ur desired location.
how to invoke gps to find my location in blackberry via simulator ?
Unless you have a physical GPS receiver attached to the machine on which the simulator is running, you will not be able to obtain GPS coordinates. What you can do is to make a dummy class that acts as the GPS device itself. This should allow you more control on how, when and what data do you supply to your program.