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.
用户必须授权给app来访问个人信息,包括当前地址,日历,联系人信息,提和照片。尽管用户期望app访问着这些信息很便捷,他们也期望能控制他们的个人数据。例如,用户喜欢可以标记他们照片的实际地点或者找到附近的朋友,但是他们希望有选项来能禁用这些特性
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.
只有在你的app确实需要时才请求访问个人数据。请求个人信息一般会让人觉得可疑,特别如果没有明显的需求需要它。确保只有当用户在用的特性确实需要个人数据时才请求权限。例如,一个app也许只请求访问当前位置当激动一个位置跟踪特性。
Explain why your app needs the information if it’s not obvious.You can add custom text to the system-provided permission request alert. Make the text specific and polite, so people don’t feel pressured. Keep the text short, and use sentence case. There’s no need to include your app name. The system already identifies your app as the one making the request.
如果原因不明显时,解释为什么你的app需要这些信息。你可以在系统提供的权限请求提醒上加定制文本。让文本明确和有礼貌,这样用户不会觉得压力。保持文本剪短,使用句子大小写。没必要包括你的app名字。系统已经标示你的app当做出一个请求时。
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.
只有当对你的功能必须时,在启动时请求权限。如果你的app明显依赖他们的个人信息来操作,用户不会对请求感到困扰。
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, seeLocation and Maps Programming Guide.