I'm working with deep linking features for android and iOS, my back end is in CI. The deep linking is working for both Android and iOS when the application is installed. But if the application has not been installed then I face the problem.
I have tried it this way: When any user clicks on the link then first it will redirect to the browser, after that from my back end code I am checking that the client device type. If the device is Android then I am redirecting it to Android application, if the device is iOS then it redirect to iOS application. But when the application hasn't been installed, it stops working.
For Android I have put the following code:
header("Location: my.special.scheme://other/parameters/here")
For iOS have added the application scheme just before the URL.
I think I have described all my scenarios. Please guide me how it should be redirected to the app store or the specific page when the application is not installed.