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

Notification.confirm() fails on windows due to multiple issues

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • cordova-plugin-dialogs
    • None

    Description

      There are bunch of issues related to this bug:

      1. On WP8.1 it's not possible to show dialog with more than two buttons. Such attempt will cause WinRTError: The parameter is incorrect exception
      2. On Windows8/8.1 it is not possible to add more than three buttons to MessageDialog instance. It will throw JavaScript runtime error: The operation attempted to access data outside the valid range error.

      These issues should be noted in plugin's docs.

      1. After dialog call, that causes any exception such as listed above, following attempts to show any dialog will have no effect because of windows's implementation logic. We need to handle exceptions inside of plugin and always set isAlertShowing flag to false to prevent queuing of future dialogs calls.
      2. When confirm dialog is called with buttons array, if one of button's labels contains a comma, it will be splitted to two separate labels. For example ["yes","no","maybe,possible"] will be converted into ["yes","no","maybe", "possible"]

      Also there is issue in manual tests: windows Javascript apps doesn't have built-in notification finctions, such as alert() or confirm(), so manual tests that calls this methods will fail. We need to add check for these methods exists to manual tests.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vladimir.kotikov Vladimir Kotikov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: