CordovaDialogs alert fires twice

Hi,

I have a alert pops up when my service returns rejection, but for some reason alert fires twice, and its anoying. This is what I have in my on click funtion

$scope.refreshList = function(){
    
    // Show loading 
    $cordovaProgress.showSimple(true);
    
    Events.getLiveEvents().then(function(list){
        
        $cordovaProgress.hide();
        $scope.settings.saved_events = list;
        
    }, function(error){
        
        $cordovaProgress.hide();
        $cordovaDialogs.alert(error, 'Error', 'OK').then(null,null);
        //alert(error);
        
    });    
    
};

If I put simple js alert then is fine, so I traced the issue down to cordovaDialogs service, it is not the first time Iā€™m doing this setup, but for some reason alert shows two times.

Not sure if its related with this

1 Like