简体   繁体   English

iOS 6模拟器中的ABAddresBook权限

[英]ABAddresBook Permission in iOS 6 Simulator

Do you know if permissions are working on the simulator? 您知道模拟器上的权限是否有效吗? I request access, but can't see my application in Pricacy settings, also I do get back an array of all the contacts, etc. And according to my code access has been already granted. 我请求访问,但是在Pricacy设置中看不到我的应用程序,而且我确实获得了所有联系人的数组,依此类推。根据我的代码,访问权限已被授予。 Is this a simulator issue? 这是模拟器问题吗?

The iOS6 release notes (see here ) clearly state that no privacy alerts are displayed for apps that access Photos, Contacts, Calendar, and Reminders. iOS6发行说明(请参阅此处 )明确指出,访问照片,联系人,日历和提醒的应用程序不会显示任何隐私警报。

You must test privacy on a real device. 您必须在真实设备上测试隐私。

Simulator limitations quoted from the iOS 6 release notes: iOS 6发行说明中引用的模拟器限制:

Simulator
* No privacy alerts are displayed in iOS Simulator for apps that access Photos, Contacts, Calendar, and Reminders.
* For this release, iOS Simulator does not support testing In-App Purchase. Please use a device to test your apps that use this feature.
* When attempting to play an MP3 sound in Simulator, you will hear a popping sound instead.

I wouldn't count on the simulator. 我不会指望模拟器。 I have myself experienced issues with the simulator and in regards with asking Calendar/Addressbook permissions. 我在模拟器以及询问日历/通讯簿权限方面遇到了问题。 To be on the safe side I would recommend that you test against a real device. 为了安全起见,我建议您针对真实设备进行测试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM