You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Vladimir Kotikov (JIRA)" <ji...@apache.org> on 2014/09/25 15:36:34 UTC

[jira] [Updated] (CB-7639) Notification.confirm() fails on windows due to multiple issues

     [ https://issues.apache.org/jira/browse/CB-7639?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vladimir Kotikov updated CB-7639:
---------------------------------
    Description: 
There are bunch of issues related to this bug:
# 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
# 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.

# 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.
# 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"]}}

  was:
There are bunch of issues related to this bug:
# 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

# 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.

# 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.

# 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"]}}


> Notification.confirm() fails on windows due to multiple issues
> --------------------------------------------------------------
>
>                 Key: CB-7639
>                 URL: https://issues.apache.org/jira/browse/CB-7639
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Dialogs
>            Reporter: Vladimir Kotikov
>
> There are bunch of issues related to this bug:
> # 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
> # 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.
> # 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.
> # 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"]}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)