I know that there is a question similar to mine, but the difference between mine and the other is that I want to know how it works in two different systems. So please, help me!!!
how do I ask if user want to continue using browser or the app? IN ANDROID AND IOS. if already has the app, is it possible to take it straight to the app and if not take it to google play or app store?
My code that only takes to google play and I don't even know if it's checking for the app:
let now = new Date().valueOf();
setTimeout(() => {
if (new Date().valueOf() - now > 100) return;
window.location =
"https://play.google.com/store/apps/details?id=app.id" ||
"https:/google.com"; <- if it's ios, go to google?
}, 25);
window.location = "appname://";