It's possible to detect 'OpenVPN Connect' installed only if you make custom url scheme.
Use case for 3-rd party app:
Code: Select all
UIApplication * app = [UIApplication sharedApplication];
NSString * openVpnCustomUrlScheme = @"net.openvpn.OpenVPN-Connect.scheme";
BOOL installed = [app canOpenURL:[NSURL URLWithString: openVpnCustomUrlScheme]];
if (installed) {
[app openURL: url2ovpn];
} else {
[app openURL: [NSURL URLWithString: @"https://itunes.apple.com/app/id590379981?mt=8"]];
}
Thanks!
More info here: http://stackoverflow.com/q/5746289/751932