文章目录
前言
保护用户的隐私不被侵害是每个开发者应该承担的责任
用户隐私已经不断被资产化,通过商业运作成为了一种牟利的手段。apple在用户隐私保护方面一直走在前列.
遵循使用最少的权限来实现功能
例如给全部权限的话,有些app就偷偷读相册,根据相册给推商品
在iOS14相册 iOS 14 相册权限增加了 Limited Photo 模式 ,新增选择权限类型 PHAuthorizationStatusLimited
PHAuthorizationStatusLimited API_AVAILABLE(ios(14)), // User has authorized this application for limited photo library access. Add PHPhotoLibraryPreventAutomaticLimitedAccessAlert = YES to the application's Info.plist to prevent the automatic alert t