I want to open my ios app using URL schemes. I am able to open app using this. But I want if app is not installed then app store should be opened where user can download app. Is this possible? How can I do that?
EDIT Explaining question step wise:
Thank
Swipe left past all your Home Screen pages to see App Library, where your apps are organized by category. To open an app, tap its icon. To return to App Library, swipe up from the bottom edge of the screen (on an iPhone with Face ID) or press the Home button (on an iPhone with a Home button).
Nearly all iOS apps assign themselves one or more URL scheme names. Many also code in various path, parameter, anchor, query, and fragment components for specific requests (sometimes called “deep links”).
I handled it via my server side code:
if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) { location.replace("com.myapp://"); setTimeout(function() { if (!document.webkitHidden) { location.replace("https://itunes.apple.com/app/xxxxxxxx"); } }, 25);} else if ((navigator.userAgent.match(/android/i)) || (navigator.userAgent.match(/Android/i))) { location.replace("https://play.google.com/store/apps/details?id=packagename&hl=en");} else { location.replace("http://www.example.com");}
I put this in my www.mysite.com/download page & share this url via campaigns.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With