0

I am using the cordorva dialog plugin. Please can you decipher what's wrong with this code: It works when previewing on phone gap, on apple iphone and on android but released on the google play store, it isn't working. i am not sure i am using the deviceready event listener right.

  function alrt(){
    document.addEventListener("deviceready", onDeviceReady, false);
    function onDeviceReady(){

    navigator.notification.alert(
        'Sorry, your record was not found',   //  message
         adismissed,                          // callback
        'Password Reset',                     // title
        'Ok'                                  // buttonName
    );

 }
}


    //  xxxxxxxxxxxxxxxxxxxxxxxxxxx
    //  xxxxxxxxxxxxxxxxxxxxxxxxxxx

    function adismissed() {
        console.log();
    }

0 Answers0