in ios app, launch application safari, url scheme this, launch app url
possible re-direct url appstore pointing app if particular app not installed in device,
looking
- if app installed let launch url "a"
- if app not installed let point app store , promot user download app,
there examples of how link app app store, not able add condition in js when launch custom url scheme if app there, else launch app store.
update :
the answer provided , in comment take me page says how launch app store specific app that's secdonary requirement, need have js code can detect whether device has app specific url scheme if not open app store app page
element
i'm not sure if can check if third party app installed on device code. think when know url-scheme of specific 3rd party app can check
bool canopen = no; canopen = [[uiapplication sharedapplication] canopenurl:url]; if (canopen) { [[uiapplication sharedapplication] openurl:url]; } else { [[uiapplication sharedapplication] openurl:@"itms://itunes.apple.com/us/app/mensa-essen/id742570910?ls=1&mt=8"]; }