如何查找 OpenVPN 是否已安装

How to find OpenVPN is installed or not

我搜索了 OpenURL 方案以查找是否安装了 OpenVPN。
到目前为止没有运气。
还有其他方法可以验证吗?

在 iOS < 9 中,如果您知道确切的 URL 方案,您可以轻松检查是否安装了应用程序。

为此,您可以使用函数 [[UIApplication sharedApplication] canOpenURL:yourURL][[UIApplication sharedApplication] openURL:yourURL]。不同的应用程序使用此功能来检查安装了哪些应用程序以提供自定义广告。

随着 iOS9 的更新,此功能受到限制。 "Starting on iOS 9, apps will have to declare what URL schemes they would like to be able to check for and open in the configuration files of the app as it is submitted to Apple."(笨拙的兔子 - Quick Take on iOS 9 URL Scheme Changes)

编辑:URL 方案提供者:Durai Amuthan.H

此致

OpenVPN Connect 1.0.6 及更高版本安装 openvpn:// URL 方案,可以使用以下代码进行检测:

BOOL installed = [application canOpenURL:[NSURL URLWithString:@"openvpn://"]];

Reference