openvpn ios client custom url scheme -


my application have ios openvpn connect app dependency.

so have check if app installed or not

if open app using openurl scheme else open appstore link user install it.

so problem here couldn't find open url associated app.

any appreciated !

it exports doctype. use uidocumentinteractioncontroller check if filetype can opened , app installed.

uti net.openvpn.formats.ovpn

copy file of type (you can make such file on osx) bundle , attempt present interaction controller using presentopeninmenufromrect

set delegate , if fires willshowmenu, no app there - , dismiss menu.

so started this:

nsstring *file = ... //path file uti in question  uidocumentinteractioncontroller *c = ... //init file c.delegate = self; _hasappinstalledforuti = no; [c present...];  if(!_hasappinstalledforuti) {     //act } 

...

- willpresentopeninmenu {     [c dismissanimated:no];     _hasappinstalledforuti = yes; } 

btw: checked app -- there no url scheme.


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -