提交需求
赛事与广告咨询合作,请填写需求表单,我们会在第一时间与您联系!
这是 iOS 系统设计规范翻译第 09 篇,热烈欢迎理性讨论,如有翻译不到位之处请批评指正。
网址:https://developer.apple.com/design/human-interface-guidelines/ios/app-architecture/requesting-permission/
作者:苹果公司
译者:泽泽先生
正文:
Users must grant permission for an app to access personal information, including the current location, calendar, contact information, reminders, and photos. Although people appreciate the convenience of using an app that has access to this information, they also expect to have control over their private data. For example, people like being able to automatically tag photos with their physical location or find nearby friends, but they also want the option to disable such features.
用户需要授权应用程序去访问个人信息,包括当前位置、日程、联系人信息、提醒事项及照片。即使人们喜欢应用程序可以直接使用个人信息带来的便利性,但他们依然期望自己可以拥有个人隐私数据的控制权。例如,用户希望应用程序能够自动标记照片的实际位置并找到附近的朋友,但同时也希望有关闭这项功能的权利。
Request personal data only when your app clearly needs it. It’s natural to be suspicious of a request for personal information, especially if there’s no obvious need for it. Make sure permission requests occur only when people are using features that clearly need personal data. For example, an app might only request access to the current location when activating a location tracking feature
仅当你的应用程序确实需要个人数据时才发出请求。(用户)对请求获取个人信息表示怀疑是很自然的,尤其是在不存在明显需求时,确保许可请求是在应用程序的功能确实需要个人数据的情况下发出的。例如,当需要使用当前地理位置时再激活获取位置功能。
Explain why your app needs the information. Provide custom text (known as a purpose string or usage description string) for display in the system's permission request alert, and include an example. Keep the text short and specific, use sentence case, and be polite so people don't feel pressured. There’s no need to include your app name—the system already identifies your app. For developer guidance, see Protecting the User's Privacy.
(向人们)解释为什么你的应用程序需要这些信息。提供自定义文本(类似目的说明或者使用说明)用于显示在系统权限请求警示框,并包含相应的例子,保持文本的简短和明确,语句需要使用实例,态度要礼貌,不要让用户感到压力,这里不需要包括你的应用程序名称,系统已经识别了应用程序的名称。
译者注:
use sentence case,我对这句话的理解是应用程序在请求权限时,需要举例说明,我们可以上文 Nike 、Yelp、Mobike 在获取权限时都有举例说明,并说明此项权限的具体用途是什么。
Example purpose strings示例目的字符 | |
The app records you during the night to detect snoring sounds.应用程序会记录你在夜间的鼾声。正确 | |
Microphone access needed for a better experience. 需要使用麦克风才能获得更好体验。错误 | |
Turn on microphone access. 打开麦克风访问路径。错误 |
Request permission at launch only when necessary for your app to function. Users won’t be bothered by this request if it’s obvious that your app depends on their personal information to operate.
仅在应用程序功能需要时才在(应用程序)启动时请求权限。当应用程序有赖于个人信息才能正常运转这点很明确时用户不会被这种请求所困扰。
Don’t request location information unnecessarily. Before accessing location information, check the system to see whether Location Services is enabled. With this knowledge, you can delay the alert until a feature truly requires it, or perhaps avoid the alert altogether. To learn how to implement location features, see MapKit and Location and Maps Programming Guide.
不要在不必要时请求权限。在请求地址信息之前,检查系统是否启用了位置服务,根据获得的信息,你可以延迟弹出警示框直到真正需要时(才弹出警示框),或者也可以直接避免警示框的使用。
Use the system-provided alert. You can customize text in the standard permission alert, but avoid adding custom prompts that replicate the standard alert’s behavior or appearance.
使用系统提供的警示框。可以自定义标准权限警示框中的文本,但请避免添加定制的复制标准警示框或外观的行为。
片尾总结:
未完待续,下一篇《App Architecture_Settings》,敬请期待。
Powered by Froala Editor
大牛,别默默的看了,快登录帮我点评一下吧!:)
登录 立即注册