[6] 用户隐私

标识符

  1. Universally Unique Identifier
    let uuid = UUID() // 每调用一次,会生成新的UUID

  2. Vendor Identifier
    let idForVendor = UIDevice.current.identifierForVendor // 同一个team 的app 相同

位置授权(iOS 11)

Purpose String:

  • NSLocationWhenInUseUsageDescription
  • NSLocationAlwaysAndWhenInUseUsageDescription

授权状态:

  • Always
  • WhenInUse
[6] 用户隐私_第1张图片
bcfb6db1-7536-4404-9a9d-09769c28139c.png

最佳实践:

需要Always 权限, 提供以下字符串描述:
NSLocationWhenInUseUsageDescription
NSLocationAlwaysAndWhenInUseUsageDescription
NSLocationAlwaysUsageDescription // 向下兼容


[6] 用户隐私_第2张图片
f82f5156-0a65-46fe-8f87-c7c58e910573.png

图片库(iOS 11)

  1. UIImagePickerController:不需要授权了
  2. 只写操作需要授权:
    Purpose String:
    • NSPhotoLibraryAddUsageDescription

    UIImageWriteToSavedPhotosAlbum
    UISaveVideoAtPathToSavedPhotosAlbum

Safari View Controller (iOS 11)

  1. SVC 和 Safari 分别有自己对网站数据存储(比如cookie)
  2. 清除Safari 的数据也会清除SVC的数据

参考资料:

  • Privacy and Your Apps
  • What's New in Location Technologies
  • What's New in Photos APIs

你可能感兴趣的:([6] 用户隐私)