If the app is installed in our IOS device or ANDROID device the app will open else we can redirect to the Apple store or Google store for downloading the app.
So, In this tutorial, we will learn how to let our device detect if an app is installed in our device or not.
Steps to follow:
1- We need an app registered on Apple store or Google store
2- Now we need a url for deep linking In the URL Types section, click on the + button, and then add an identifier and a URL scheme. For example: myapp://
Note: The url scheme and the identifier must be unique
3- Now confirm if this url scheme is registered
On expending Info.plist (for IOS) we can find the new url scheme.
4- To check if it is working:
Now we will type the below mention url into Safari Mobile:
your-url-scheme://
For example: myapp://
This will open the application in our IOS device.
5- Once the above steps have been followed and tested we will write the following javascript code in the home page of our website.
<script type = “text/javascript”>
setTimeout(function () { window.location = "https://itunes.apple.com/appdir"; }, 25);
window.location = " myapp:// ";
For IOS: https://itunes.apple.com/appdir/ *
For ANDROID: https://play.google.com/store/apps/ *
</script>
- Note: URL for our app on either Apple store or Google store.
6- For more information regarding how to create deep link url scheme in IOS/ANDROID click the below link
http://blog.originate.com/blog/2014/04/22/deeplinking-in-ios/
http://mobiledeeplinking.org/
0 Comment(s)