allow 3-rd party app to detect installed "OpenVPN Connect"

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
Speakus
OpenVpn Newbie
Posts: 2
Joined: Thu Nov 27, 2014 5:41 am

allow 3-rd party app to detect installed "OpenVPN Connect"

Post by Speakus » Thu Nov 27, 2014 5:54 am

Please, allow 3-rd party app to detect installed "OpenVPN Connect".

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"]];
}
Please do this feature - it allow to use this app by 3-rd party apps.
Thanks!
More info here: http://stackoverflow.com/q/5746289/751932

Speakus
OpenVpn Newbie
Posts: 2
Joined: Thu Nov 27, 2014 5:41 am

Re: allow 3-rd party app to detect installed "OpenVPN Connec

Post by Speakus » Sun Feb 08, 2015 3:31 pm

Hello,
Could anyone give any comment to this?

User avatar
samuli
OpenVPN Inc.
Posts: 49
Joined: Fri Aug 13, 2010 9:05 pm

Re: allow 3-rd party app to detect installed "OpenVPN Connec

Post by samuli » Thu Feb 26, 2015 7:42 am

This functionality will be available in next OpenVPN Connect release (1.0.6).

Samuli

User avatar
jamesyonan
OpenVPN Inc.
Posts: 169
Joined: Thu Jan 24, 2013 12:13 am

Re: allow 3-rd party app to detect installed "OpenVPN Connec

Post by jamesyonan » Fri Feb 27, 2015 8:58 am

Yes, starting with OpenVPN Connect 1.0.6, the following code may be used to detect the app:

Code: Select all

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

User avatar
taiwanmobileservices
OpenVPN User
Posts: 38
Joined: Sun Jun 30, 2013 2:34 am
Location: Taiwan
Contact:

Re: allow 3-rd party app to detect installed "OpenVPN Connec

Post by taiwanmobileservices » Sat Jun 06, 2015 2:55 pm

Hi! James,

When can we see the release either 1.0.6 or newer?

Kindly advise.

Thanks!
jamesyonan wrote:Yes, starting with OpenVPN Connect 1.0.6, the following code may be used to detect the app:

Code: Select all

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

Post Reply