1

iOS Phonegap アプリケーションを作成しています。http://docs.phonegap.com/en/1.0.0/phonegap_notification_notification.md.htmlのスクリプトを使用しています

// Show a custom alert

function showAlert() {
    navigator.notification.alert(
      "Do you really want to delete this item?",  // message
        alertDismissed,         // callback
        "Delete",            // title
        "Ok, Cancel"                  // buttonName
    );
}

 // alert dialog dismissed
         function alertDismissed() {
 //      alert("Test this");// write your necessary code here
}

HTMLで.jsファイルを呼び出しました

私が抱えている問題はかなり奇妙です。ボタンをクリックしてアプリでポップアップを表示しても、何も起こりません。しかし、アプリを閉じて再度開くと、以前に表示されるはずだったポップアップが表示されます!

誰か助けてくれませんか!

4

0 に答える 0