Forum Xamarin Test Cloud (Read Only)

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

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.