CordovaDialogs alert fires twice


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 
        $scope.settings.saved_events = list;
    }, function(error){
        $cordovaDialogs.alert(error, 'Error', 'OK').then(null,null);

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