简体   繁体   English

使用 App-prefs:root 是否被视为私有 API?

[英]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.

相关问题 App-Prefs:root=NOTIFICATIONS_ID 不适用于 iOS 11 Swift 4 - App-Prefs: root=NOTIFICATIONS_ID Not working on iOS 11 Swift 4 如果不再接受NSURL URLWithString:@“ App-Prefs:root = Bluetooth”,如何以本地响应方式打开蓝牙? - How do I turn on Bluetooth in react-native if NSURL URLWithString:@“App-Prefs:root=Bluetooth” is no longer accepted? 什么是app-prefs / prefs:链接,用于打开另一个应用程序的设置? - What is the app-prefs/prefs: link to open another app's settings? iOS构建问题App Store首选项:root = - iOS build issue App Store prefs:root= 应用程序因使用私有 API“commentText”而被拒绝 - App got rejected for use of private API "commentText" 替代NSURL prefs:root链接 - Alternative to NSURL prefs:root link ios app store rejection - 您的应用使用“prefs:root =”非公共URL方案 - ios app store rejection - Your app uses the “prefs:root=” non-public URL scheme 离子v1科尔多瓦“ prefs:root =”非公共URL方案iOS应用拒绝 - Ionic v1 Cordova “prefs:root=” non-public URL scheme ios app rejection ios 中用于键盘文本替换的 prefs:root 是什么? - What is prefs:root for keyboard text replacement in ios? 是否使用考虑使用私有API的KVC访问私有财产(以下划线开头)? - Is accessing a private property (starting with underscore) using KVC considered using private API?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM