Is there a way to manage the Cancel
button on the Open in App prompt when redirected from Safari/Chrome to the AppStore?
The situation is as follows: A user is prompted to download the app via a browser link. Upon clicking the link, it determines whether it's an Android or iOS device. If it's iOS, it redirects to the App Store
.
This process works smoothly on Android devices. However, on iOS, a pop-up appears asking the user whether they want to switch and open the link in another app.
My client now wants me to handle the Cancel
option for this scenario.
Is there a JavaScript solution to address this issue?
The code snippet resembles the following:
if($rootScope.$device.Android()) {
window.location = appConfig.PLAYSTORE_LINK;
return;
}
if($rootScope.$device.iOS()) {
window.location = appConfig.APPSTORE_LINK;
return;
}
P.S.: Although I suspect the pop-up is system-generated, managing it may not be feasible or even possible.