今早收到推送得知app被拒。
【问题详细】
4.5 - Apps using background location services must provide a reason that clarifies the purpose of the use, using mechanisms described in the Human Interface Guidelines
4.5 Details
Your app uses background location services but does not clarify the purpose of its use in the location modal alert as required in the iOS Human Interface Guidelines.
We’ve attached screenshot(s) for your reference.
Next Steps
Please reconfigure the UIAlertControllerStyleAlert in your code and specify the intended purpose of using background location in its message field.
Resources
For additional information and instructions on configuring and presenting an alert, see the Accessing User Data section of the iOS Human Interface Guidelines and the UIKit Framework Reference.
并附带截图(应用名称已处理)
【处理办法】
查询资料后发现,苹果好像在近期修改了审核规则,需要在获取用户定位的时候,告知用户为什么需要获取用户的位置。
所以在工程 info.plist文件里面增加 NSLocationAlwaysUsageDescription 并且要配上详细说明文字但要简洁,告诉用户你为什么要访问他的位置!(因人而异,根据你自己的需求制定需要提示的语言)
苹果更新审核要求请参照:https://developer.apple.com/app-store/review/guidelines/#location
【后续】
先已重新提交app,等待审核中。看审核结果如何再来完善文章。
已经审核通过。