[英]Is it considered a private API to use App-prefs:root?
In my app I'm using [NSURL URLWithString:@"App-Prefs:root=Privacy&path=LOCATION"]
to open settings screen.在我的应用程序中,我使用
[NSURL URLWithString:@"App-Prefs:root=Privacy&path=LOCATION"]
打开设置屏幕。 Will it be rejected by apple as according to some sources this is considered a private API?根据某些消息来源,它是否会被苹果拒绝,这被认为是私有 API?
Yes.是的。 The only legal way to open Settings is to use
UIApplicationOpenSettingsURLString
.打开设置的唯一合法方法是使用
UIApplicationOpenSettingsURLString
。
My app just got rejected because of this, so yes, it is considered as private API :)我的应用程序因此被拒绝,所以是的,它被视为私有 API :)
Here's the rejection notice from Apple:这是苹果的拒绝通知:
Your app uses the "prefs:root=" non-public URL scheme, which is a private entity.
您的应用程序使用“prefs:root=”非公共 URL 方案,这是一个私有实体。 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.
App Store 不允许使用非公共 API,因为如果这些 API 发生变化,可能会导致糟糕的用户体验。
To resolve this issue , if you are navigating to Settings > Privacy .要解决此问题,请导航到“设置”>“隐私” 。 "Just remove that code" and put a simple alert showing Enable location services.
“只需删除该代码”并放置一个显示启用位置服务的简单警报。
Because from iOS 10 apple consider it is as private entity .因为从 iOS 10 开始,苹果将其视为私有实体。 So you can not go through it.
所以你不能通过它。
There's no supported way to open Settings to the Wi-Fi/Language/Location 'page'.不支持将设置打开到 Wi-Fi/语言/位置“页面”。 The fact that this worked in iOS 9 is a bug that's been fixed in iOS 10.
这在 iOS 9 中有效的事实是一个已在 iOS 10 中修复的错误。
For more info please refer https://forums.developer.apple.com/message/186656#186656有关更多信息,请参阅https://forums.developer.apple.com/message/186656#186656
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.