OS 10 Device Permissions (camera, album, etc.), OS Permissions

Source: Internet
Author: User

OS 10 Device Permissions (camera, album, etc.), OS Permissions

For iOS 10 devices, the following fields must be added:

 

  1. <! -- Album -->
  2. <Key> NSPhotoLibraryUsageDescription </key>
  3. <String> the App requires your consent to access the album </string>
  4. <! -- Camera -->
  5. <Key> NSCameraUsageDescription </key>
  6. <String> the App requires your consent to access the camera </string>
  7. <! -- Microphone -->
  8. <Key> NSMicrophoneUsageDescription </key>
  9. <String> the App requires your consent to access the microphone </string>
  10. <! -- Location -->
  11. <Key> NSLocationUsageDescription </key>
  12. <String> the App can be accessed only with your consent </string>
  13. <! -- Access location during use -->
  14. <Key> NSLocationWhenInUseUsageDescription </key>
  15. <String> the App can be accessed during use only with your consent </string>
  16. <! -- Always access location -->
  17. <Key> NSLocationAlwaysUsageDescription </key>
  18. <String> the App must have your consent before it can always be accessed </string>
  19. <! -- Calendar -->
  20. <Key> NSCalendarsUsageDescription </key>
  21. <String> the App requires your consent to access the calendar </string>
  22. <! -- Reminder -->
  23. <Key> NSRemindersUsageDescription </key>
  24. <String> the App requires your consent to access the reminder </string>
  25. <! -- Sports and fitness -->
  26. <Key> NSMotionUsageDescription </key> <string> the App requires your consent to access sports and fitness </string>
  27. <! -- Health update -->
  28. <Key> NSHealthUpdateUsageDescription </key>
  29. <String> the App must have your consent to access health update </string>
  30. <! -- Health sharing -->
  31. <Key> nshealthpolicusagedescription </key>
  32. <String> your consent is required for the App to access health sharing </string>
  33. <! -- Bluetooth -->
  34. <Key> nsbluw.thperipheralusagedescription </key>
  35. <String> the App requires your consent to access Bluetooth </string>
  36. <! -- Media database -->
  37. <Key> NSAppleMusicUsageDescription </key>
  38. <String> the App requires your consent to access the media database </string>

 

Problem description:

  1. This app has crashed because it attempted 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 uses this data.
  2. You need to add a "NSContactsUsageDescription" Key and Value to the info. plist file to add a description.

 

 

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.