Detecting a specific app in the mobile from safari browser using universal links
I am using the below code to detect my app in mobile phone and the code works fine on chrome(for both android and IOS). But in case of safari the issue is when my function is called it causes a popup to open when app is installed and the popup as to open the app or cancel(two buttons). when i click open app within the specified time (2s). it opens the app but when i click the open app after 2s it opens the app and app store link as well. Also, when i click the cancel it also takes me to the app store