How to Use Location Services
Learn how to specify longitude and latitude coordinates for iOS and Android mobile app testing.
When testing location services in mobile apps, there are differences in how you specify longitude and latitude coordinates in iOS and Android.
iOS GPS Services
For iOS longitude and latitude coordinates, Unicode and alphabetic characters are not permitted.
- North or East. Use numbers and decimal points only. For example, 37.7749° N or 37.7749° E translates to
37.7749
. - South or West. Precede the numerical coordinates with a minus sign (-). For example, 122.4194° S or 122.4194° W translates to
-122.4194
.
iOS Tester Step Instruction Examples
Step 1: In the operating system’s top navigation bar, click Features.
Did a menu appear with Location listed?Step 2: Click Location, then Custom Location from the submenu.
Did the Custom Location modal appear?Step 3: Enter Latitude: “{{example_latitude}}” and Longitude: “{{example_longitude}}” and click the OK button.
Did the Custom Location modal disappear?
Android Location Services
For Android, instead of entering longitude and latitude coordinates, you specify the location using a name, such as “San Francisco, California, USA.”
Android Tester Step Instruction Examples
Step 1: Locate the action bar next to the emulator. Click the More button (…).
Did the “Extended Control” popup appear?Step 2: Start typing the name of a city, then select it from the dropdown.
Did a pin appear on the map indicating the location?Step 3: Click the Set Location button.
Did a message appear stating that the location has been set to the designated city?
If you have any questions, reach out to us at [email protected].
Updated about 1 year ago