Why call back method does not call some time for confim dialog


“Are you sure you want to logout?”,
function(){ navigator.notification.alert(“Logged Out Successfully”); },


i tried $scope.$apply after calling but its also not helping.

what do you mean with some time?

i tried this code and it worked it shows up Logout modal, and after clicking yes it shows logged out.
do you expect something different?

I mean to say that some time that callback method which call’s on “Yes” button click it does not call and again when i try to open confim dialog again that time previous callback method calls.

most of the cases it works but here i am testing it on s4 samesung device (Android 4.4 KitKat API level 19) in which its behaving like that in another i didn’t tested.

Similarly ng Cordova camera then method also not call every time.It calls only when again we call $cordovaCamera.getPicture method…This is kind of inconsistency issue…

                    DestinationType: Camera.DestinationType.FILE_URL,
                    quality: 50,
                    targetWidth: 200,
                    targetHeight: 200,
                    sourceType: 0,
                    allowEdit: true,
                    encodingType: Camera.EncodingType.JPEG,
                    saveToPhotoAlbum: false
                }).then(function (imageURI) {
                }, function (err) {    
                    //alert('Unable to take picture');

I solved this by adding fullscreen mode into config file and now its working previously it was taking into que

  <preference name="Fullscreen" value="true" />

I don know how these things related to each what does it mean that i will not work with without full screen mode.