mod zu created CB-2402:
--------------------------

             Summary: notification.alert misbehaving with ios 6/6.1
                 Key: CB-2402
                 URL: https://issues.apache.org/jira/browse/CB-2402
             Project: Apache Cordova
          Issue Type: Bug
          Components: CordovaJS, iOS
    Affects Versions: 2.3.0, 2.2.0
         Environment: ios 6.1, ipad, phone gap build 2.2.0
            Reporter: mod zu
            Assignee: Filip Maj


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 load 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to