"The address wasn't understood" error when redirecting the user with a custom URI
We are using custom URI to redirect users to our app. If the app is not installed, we are redirecting them through the Google Play Store after a timeout (settimeout function in JS). It works most of the time but sometimes instead of being redirected to the app store, an error "The address wasn’t understood Firefox doesn’t know how to open this address, because one of the following protocols (<myProtocol>) isn’t associated with any program..." is displayed.
It seems like the timeout function does not work everytime but I'm not sure what is happening here.
Additional System Details
- User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36