Javascript - Check if Web App or Android App Javascript - Check if Web App or Android App json json

Javascript - Check if Web App or Android App


You can do this using navigator object like this:

Wrap your above code inside the if() block,

var ua = navigator.userAgent;if(!(ua.match(/Android/i))){   //this code will run only when there is any non-android client.}