Disable plugins when in desktop browser

Is there some way to conditionaly run a code related to cordova plugins only if app is running on a mobile platform and not in a desktop Chrome? In the docs I’ve found that there are methods like isAndoid(), but it returns true even if my app is started on a desktop PC with Chrome. I’ve got such an easy thing to handle:

$scope.onHold = function(product) {
   if (isAndoid()) {
   } else {
        alert('does not vibrate here');


Check for Cordova. Something like…

    //Plugins Available

Thank you. It works as I needed :smile: