Bug 25517 - Using Picker Control disables proximity setting in iOS
Summary: Using Picker Control disables proximity setting in iOS
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.2.3
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2014-12-18 18:50 UTC by manninga
Modified: 2017-06-17 00:40 UTC (History)
5 users (show)

Tags: ios, picker,
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:

Description manninga 2014-12-18 18:50:54 UTC
My Shared project Forms application uses the proximity setting in the AppDelegate.cs file of the iOS project:

UIDevice.CurrentDevice.ProximityMonitoringEnabled = true;

The Shared project has multiple pages, one with a Picker control on it.  The proximity sensor works perfectly on all the pages until a selection is made with the Picker.  Once an item is selected in the Picker control, the proximity sensor is disabled.  As a work around, I've hooked up an event handler to reset the proximity setting:

protected void OnPickerControlSelectedIndexChanged(object sender, EventArgs args)
    #if __IOS__
        MonoTouch.UIKit.UIDevice.CurrentDevice.ProximityMonitoringEnabled = true;
Comment 1 Parmendra Kumar 2014-12-23 07:38:40 UTC
I have checked this issue but I am not able to reproduce this. Could you please provide us sample project/steps and environment info so that I can reproduce this issue at my end.

You can get environment info via (Xamarin Studio->About Xamarin Studio->Show details->Copy information and paste)
Comment 2 manninga 2015-01-08 09:40:41 UTC
Sorry for the delayed response - I was away on vacation.

I am using Visual Studio (2013 Update 4) with Forms  I ran the application through the VS debugger on my iPhone 6.

Please let me know if you need any additional information.
Comment 3 Jason Smith [MSFT] 2016-03-25 19:10:14 UTC
Thank you for taking the time to submit the bug. Going forward, we're asking customers to attach reduced reproductions to the bugs. Ideally, the reproduction would be created by starting with a clean Xamarin.Forms project and adding just the code necessary to demonstrate the issue. We know not everyone has time to do this and it's not a requirement to submit a bug, but it does help us resolve issues faster as well as ensuring we're solving the same issue you're seeing, so we very much appreciate it.  

Warm regards,
Xamarin Forms Team
Comment 4 David Ortinau [MSFT] 2017-06-17 00:40:24 UTC
Because we have not received a reply to our request for more information we are closing this issue. If you are still encountering this issue, please reopen the ticket with the requested information. Thanks!