Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
If an iOS app uses background location monitoring, it will run into problems when deploying UiTest locally and in the Xamarin Test Cloud. The problems stem from the iOS system prompt that is shown when the app starts up:
"Turn On Location Services to Allow "XXXX" to Determine Your Location"
This dialog is displayed if location services are turned off, and the dialog is not accessible via the REPL tree command. Thus, this dialog cannot be dismissed via UiTest commands, and subsequent UiTest commands fail because the UI elements are blocked by the dialog.
Opened issue 679 with UITest team for this problem.
@Matt - Any updates on this issue?
Sorry, no updates at the current time.
The issue logged with the UITest team has been closed.
On the Test Cloud server the location services are enabled on the devices so the dialog will not be shown.
When running locally the UITest team recommend that as a workaround you should configure the device to allow location services before using the device with UITest.
The first time I saw this problem was in the Test Cloud, so I don't think this addresses the issue.
If you are seeing the error still in the Test Cloud server would you be able to provide the link to the test which is failing?
I'm using CLLocationManager.RequestWhenInUseAuthorization() method from my code, so the device displays a request for using of user's location, e.g.
> Allow "AppName" to access your location while you use the app?
> Don't Allow | Allow
This request is suppressed when test is running on the Simulator, but it is still displayed when I run the test on my local device as well as in the Test Cloud (find example of failed test here https://testcloud.xamarin.com/app/e394c765-f9a3-4d7c-9c87-5a11a744dadb/).