$cordovaSocialSharing.canShareVia("instagram") not working in Android

Well got it working like this

    var isIOS = ionic.Platform.isIOS();
    var isAndroid = ionic.Platform.isAndroid(); 


    if(isIOS) {
        $cordovaSocialSharing.canShareVia("instagram").then(function(result) {  
            $scope.canShareInstagram  = true; 
        }, function() {
            $scope.canShareInstagram  = false;
        });               
    } else {
       if(isAndroid) {
        $cordovaAppAvailability.check('com.instagram.android')
            .then(function() {
                $scope.canShareInstagram  = true;
            }, function () {
                $scope.canShareInstagram  = false;
            });            
       } 
    }