iOS 10上的设置的自定义URL方案? [英] Custom URL Scheme for Settings on iOS 10?

查看:84
本文介绍了iOS 10上的设置的自定义URL方案?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何想法iOS 10上的设置的自定义URL方案"发生了什么? 苹果是否仍允许第三方应用通过iOS10上的URL Scheme从应用启动iOS设置?旧的URL方案不再起作用!

Any Idea what happened to the Setting's Custom URL Scheme on iOS 10? Is Apple still giving acess to third-pary apps to launch iOS Settings from the app via URL Scheme on iOS10? The Old URL scheme are not working anymore!

推荐答案

Apple在iOS 8+上启动根"Settings"应用程序的先前方法均未得到Apple的正式支持,因此很遗憾,我们不能依靠它们.即使那些其他应用程序已被批准,依赖于未记录行为的应用程序也有可能在App Store审核期间被拒绝-即使该应用程序先前已被批准!

None of the previous methods for launching the root "Settings" app on iOS 8+ were officially supported by Apple, so unfortunately we can't rely on them. It's also possible that apps that relied on the undocumented behaviors could be rejected during App Store review, even if others have been approved--even if the same app had been previously approved!

我也没有发现任何解决方法,因此看来您的选择是:

I've been unable to discover any workaround either, so it seems your choices are:

  1. 打开特定于应用程序的URL(在许多地方都进行了详细介绍,包括上述@ alvin-varghese的答案),然后要求用户向后导航. (糟糕的用户体验,因为它涉及到用户知道要从应用程序列表向上滚动到主要设置部分.)

  1. Open the app-specific URL (as detailed in many places, including @alvin-varghese 's answer above), and then ask the user to navigate backwards. (A terrible user experience, since it involves the user knowing to scroll up from the app list into the main settings sections.)

使用说明性屏幕或在应用中发出警报,以教育用户如何自行找到它. (不会好很多,但至少不会陷入没有航路点的陌生环境中.)

Use an instructional screen or alert in your app to educate users on how to find it themselves. (Not much better, but at least aren't dropped into an unfamiliar context with no waypoints.)

在iOS 10中似乎没有官方支持的方式来实现这一目标,并且正如您所指出的那样,这似乎是旧的方式(将prefs方案添加到Info.plist文件中并使用)不再起作用.

There doesn't seem to be an officially supported way of making this happen in iOS 10, and as you pointed out, it seems like the old ways (adding prefs scheme to your Info.plist file and using openURL(_:)) do not work any more.

这篇关于iOS 10上的设置的自定义URL方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆