Hi all,
all my calabash tests were working correctly on Android 5.1, but now I had some break in app development and when I wanted to run them on Android 6.0.1 - everything works apart from setting location. I get this error:
And I am in "London" # calabash-android-0.6.0/lib/calabash-android/steps/location_steps.rb:1
Action 'set_gps_coordinates' unsuccessful: The application does not have access mock location permission. Add the permission 'android.permission.ACCESS_MOCK_LOCATION' to your manifest (RuntimeError)
features/favorites.feature:20:in `And I am in "London"'
Displayed message is better than the one in older calabash version ('HTTPClient::KeepAliveDisconnected') but it's still not correct in my case. I checked it and even depackaged my apk to check if 'android.permission.ACCESS_MOCK_LOCATION' was set and yes, it was.
The is probably related to how you allow to set mock locations - earlier it was just a general setting in developer options, but in Android 6.0 you have to give permission to specific application. But it doesn't matter if I choose my app or instrumentation_backend, it doesn't work. And after I run the test and enter debugging settings there is no app set to mock location.
Does it work for anyone else with device running Android 6.0? Do you have any ideas how to make it work?
Thanks!