Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-2402

notification.alert misbehaving with ios 6/6.1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0, 2.3.0
    • 2.4.0
    • cordova-ios, cordova-js
    • None
    • ios 6.1, ipad, phone gap build 2.2.0

    Description

      navigator.notification.alert is firing on initial page load, but does not fire on subsequent visits to the page

      to reproduce:

      add an alert to fire when page is loaded:
      navigator.notification.alert("body of alert", null, "title of alert");

      add a button to reload the page:
      location.reload()

      and a second button to call the alert directly, showalert()

      NOW the problem:

      alert fires on first pageload.
      but when hitting the reload button, the alert does not fire.
      when the showalert button is clicked, it fires the alert and also fires all the missed alerts from each time the page was reloaded

      others have reported that when closing the app and opening it again, they see the alerts appear then (in my particular example i quit the app on close and do not see them appear later)

      for more discussion, see: http://community.phonegap.com/nitobi/topics/navigator_notification_alert_only_works_once

      Attachments

        Issue Links

          Activity

            People

              filmaj Filip Maj
              modzu mod zu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: