Bug 7534 - Contact sample is not working on iOS 6
Summary: Contact sample is not working on iOS 6
Alias: None
Product: Mobile API (Preview)
Classification: Xamarin
Component: Xamarin.iOS ()
Version: Preview
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Eric Maupin
Depends on:
Reported: 2012-09-28 11:46 UTC by Alex P
Modified: 2012-10-12 15:00 UTC (History)
2 users (show)

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 Alex P 2012-09-28 11:46:54 UTC
We are trying to use the contact api to get a list of contact on the device and it doesn't seem to work on iOS. 

It's working on the simulator but not on the device.  

We tried the sample included with the library on a device and it doesn't work. Maybe iOS 6 specific ?
Comment 1 Eric Maupin 2012-09-28 16:38:30 UTC
Can you be more specific than "it doesn't work"? Are you getting an exception, a build error, what?
Comment 2 Alex P 2012-09-28 16:42:36 UTC
Sorry, I should have given you more details.  There is no error, the list is returned empty.  After some investigation,  I found that this is caused by the new security feature included in iOS 6.  You now need to request permission when accessing the contacts : 

Comment 3 Eric Maupin 2012-10-12 15:00:56 UTC
0.5.1 has been released with a new API to resolve this.