它被认为是使用App-prefs的私有API:root?
在我的应用程序中,我使用[NSURL URLWithString:@"App-Prefs:root=Privacy&path=LOCATION"]
来打开设置屏幕。 是否会被苹果拒绝,因为根据某些消息来源,这被认为是私有API?
是。 打开“设置”的唯一合法方法是使用UIApplicationOpenSettingsURLString
。
我的应用程序因此被拒绝,所以是的,它被视为私有API 🙂
以下是Apple的拒绝通知:
Your app uses the "prefs:root=" non-public URL scheme, which is a private entity. The use of non-public APIs is not permitted on the App Store because it can lead to a poor user experience should these APIs change.
要解决此问题 ,请导航到“设置”>“隐私” 。 “只需删除该代码”并显示一个简单的警报,显示启用位置服务。
因为从iOS 10苹果认为它是私人实体 。 所以你不能通过它。