I set up universal links in my iOS application using an alias of my internal domain with a scheme like sudomain.mydomain.com. I want users who did not have the application installed to be redirected to our page in the App Store, and not to delete some non-existent endpoint on our server (we do not have a web server for the mobile server only).
I was thinking of doing something like this:
app.get('*', (request, response) => {
const domain = request.headers.host,
subdomain = domain.split('.');
if ( subdomain[0] === 'subdomain'){
response.redirect('www.linktoappstore.com');
}
...
});
However, I do not want this to interfere with Universal Linking for people who have the application installed. Universal Link requests are getsent to my server or is iOS intercepting them before this happens?
toddg