I'd like to have iOS/Android to open URLs from my domain (e.g. http://somedomain.com) with my app whenever the app is installed on the phone, or to go to app/play store links to the app if not.
I read it is possible to create a unique protocol suffix for this so I assume a JavaScript can do the job?
What could be the right approach for this?
Tried this but didn't work: How to redirect the user to a mobile app or a website on click of a hyperlink sent in an email? Should it need to be handled on server-side using PHP?