Requirement
We are required to conduct automated tests on a food delivery app which when launched it asks for permission to use the user's location and display a list of nearby restaurants.
Problem
When we run our tests on Bitrise the app fails to get the list of nearby restaurants because the CI server is in a different country.
Attempted Solutions
Investigations
Notes
Hope somebody could help us out.
We had two solutions which are the following:
Add an isAutomation flag to the staging app so that when the flag is true the app always takes a static longitude and latitude and does not take the current location of the device.
Install a VPN on the server and specify the country we want, however, you should verify that the VPN has servers in the country you desire.
Eventually we went with the isAutomation flag workaround.