Is it still possible to mock the location via Xamarin.UITest on Android 6?

I am able to select my app in the "Select mock location app" dialog but I still get the error:
System.Exception : No access to set mock location - add the android.permission.ACCESS_MOCK_LOCATION permission.
once I try to set the location via Xamarin.UITest
app.Device.SetLocation(lat, long).

Everything works fine on lower API levels with the same code.

Any help would be highly appreciated.

Best Answer

Answers

Sign In or Register to comment.