Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I simulate having no GPS location or poor location

I'm struggling to simulate not having gps/location or poor/slow gps location. I'm trying to simulate and test what happens if my location request times out. (Yes, I've tried the microwave, and I don't own a basement 😭)

like image 572
Alan Avatar asked May 10 '17 00:05

Alan


People also ask

How do you simulate location on Iphone?

Launch Apple Maps and navigate to the location you'd like to be in. Hit the bottom of the window to get location information, and you should find the Simulate Location feature. Tap to confirm and verify if it works for your other apps.

How do I use GPS emulator?

When setting up GPS emulator, you need to go to your Settings > About on your Android device. Then tap on the Build number seven times, which activates the developer mode. Now head back to the main settings, where you should see a new option menu called "Developer Options".

How set fake location in Android emulator?

settings> system > developer optionsFind the option select mock location app Then select the app you downloaded from step 1.

How do you add a location to emulator?

Select "Emulator Control" Tab. At bottom you will see Location Controls Panel. Select "Manual" Tab. Enter Longitude and Latitude in Textboxs then Click Send Button.


2 Answers

There's no way to do that right now. Star the feature request to encourage Google's engineers to add it:

Android Public Tracker > App Development > Android Studio > Emulator > Allow simulating no location available.

like image 166
M. Leonhard Avatar answered Oct 20 '22 18:10

M. Leonhard


Try finding an area of a building with poor or no cell tower signal and turn off wifi to disable wifi based location service. I've had good luck with going down into the basement of our building with wifi turned off to delay location positioning.

Just saw your edit about no basement. On one of my older phones, I could open the cover and disconnect the antennae. Don't know if you can still do that on modern phones.

like image 20
SKim Avatar answered Oct 20 '22 19:10

SKim