How to detect android app installed or not via web page if not installed then stay there or redirect to app store
When I check for an app installed or not using a custom url with JavaScript, the app navigates to the app, but if the app is not installed, redirect to the myschema: // details? Blank page options, if set then work fine and both links open which I redirect to my repository to play the code, as well as a custom url that I configured in android apps.
Below is my code (same logic I followed in iOS app and it works fine)
var now = new Date().valueOf();
setTimeout(function(){
if (new Date().valueOf() - now > 100) return;
window.location = "https://play.google.com/store/apps/details?id=my.apps.package";//play store URL.
},25);
window.location = "myschema://details?parameters";//custom url
Is there a way to go to a custom url if no apps are installed and then redirect them to play the store url?
+3
source to share
No one has answered this question yet
See similar questions:
or similar: