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

jcesarmobile closed CB-11635.
-----------------------------
    Resolution: Duplicate
      Assignee: jcesarmobile

It's a duplicate of CB-8947

> Passing object to navigator.notification.alert crashes iOS app
> --------------------------------------------------------------
>
>                 Key: CB-11635
>                 URL: https://issues.apache.org/jira/browse/CB-11635
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Dialogs
>    Affects Versions: 6.3.0
>            Reporter: Don Coleman
>            Assignee: jcesarmobile
>
> Create  new project
> {noformat}
>     $ cordova create foo
>     $ cd foo
>     $ cordova plugin add cordova-plugin-dialogs
>     $ cordova platform add ios
> {noformat}
> Edit www/js/index.js and replace onDeviceReady with 
> {code:title=www/js/index.js}
>     onDeviceReady: function() {
>         app.receivedEvent('deviceready');
>         // this crashes the app on iOS
>         var dictionary = { error: 'notification plugin is expecting a 
> string'};
>         navigator.notification.alert(dictionary);
>     },
> {code}
> Run the app
> {noformat}
>     $ cordova run ios
> {noformat}
> RESULT: This crashed the app on a device and on the simulator
> EXPECTED RESULT: String or \[Object object\] in the dialog box or perhaps an 
> error
> {noformat}
>     $ cordova -v
>     6.3.0
>     $ cordova platform ls
>     Installed platforms:
>       ios 4.2.0
>     $ cordova plugin list
>     cordova-plugin-dialogs 1.2.1 "Notification"
>     cordova-plugin-whitelist 1.2.2 "Whitelist"
> {noformat}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to