ios10-Configure get Privacy Data permission statement

Source: Internet
Author: User

IOS10, Apple has enhanced the protection of user privacy data, the following data will need to be info.list reconfiguration privacy to declare, or the program will not function properly.

Library, Motion, CallKit, Speech Recognition, SiriKit, TV Provider.
    • 1
    • 1
Configuration in Info.plist:

Attention:
    1. The string that follows is displayed in the description when the popup user allows it.
    2. The names of these keys already have auto-completion in Xcode 8.
    3. after configuration, remember to first Clear Oh

Here are the privacy rights and related settings

Note that Info.plist does not add the corresponding field, access to the album, Address book, while adding, the end of the tail does not have spaces

Warning:

Recently there are small partners to use Xcode 8 package upload app, local authentication and IPA upload are normal. However, the build version of itunes Connect backstage has not come out, the mobile app side itunes Connect received the push notification prompt "Your app has changed to invalid binary" and Apple sent your account email "Th Is app attempts to access privacy-sensitive data without a usage description. The app ' s info.plist must contain an nscamerausagedescription key with a string value explaining to the user how the app u SES this data. "

IOS 10 has asked us to add a description of the permission request, such as when you debug your contacts and albums, and you can see that the program crashes when you request the appropriate permissions. Plus a permission description, but if the description string is empty, debugging works fine, but it raises the problem that the package above is invalid. "All still need a specific descriptive information".

Tips: You develop a small partner can install a mobile phone-side itunes Connect, to facilitate timely receipt of relevant audit progress, while the mailbox set up the development of the mailbox, in time to receive Apple email to developers

We need to open the Info.plist file to add a description of the appropriate permissions, or the program will crash on IOS10. Your project access to private data, such as: Cameras, albums, contacts, etc., in the Xcode8 to open the compilation, all will be crash, the console will output the following such a log:
Specific as

    • Log print error prompt

022.png

    • Permissions Configuration Info.plist File

02.png

    • Microphone Permissions: Privacy-microphone usage Description Do you want to allow this app to use your microphone?
    • Camera permissions: Privacy-camera usage Description Do you want to allow this app to use your camera?
    • Album Permissions: Privacy-photo library Usage Description Do you want to allow this app to access your media library? Address Book permissions: privacy-contacts Usage Description Do you want to allow this app to access your contacts?
    • Bluetooth permissions: Privacy-bluetooth Peripheral usage Description Do you Xu Yun this app to use Bluetooth?
    • Voice to text permissions: Privacy-speech recognition usage Description allow this app to use speech recognition?
    • Calendar permissions: Privacy-calendars usage Description Do you want to allow this app to use the calendar?
    • Location permissions: Privacy-location when on use Usage Description we need to get relevant data about you from your location
    • Location rights: Privacy-location always Usage Description We need to get data about you from your location
      The positioning needs to be written so as to prevent the shelves from being rejected.

Select the current target in Xcode, select capabilities, find background Modes, open it, select the corresponding permission in the

ios10-configuration Get Privacy Data permission statement

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.