cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-8139) WP8. Fix callback for plugins with native ui (capture, contactPicker, BarcodeScanner, other)
Date Tue, 16 Dec 2014 09:24:13 GMT

    [ https://issues.apache.org/jira/browse/CB-8139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14247966#comment-14247966
] 

ASF GitHub Bot commented on CB-8139:
------------------------------------

Github user sgrebnov closed the pull request at:

    https://github.com/apache/cordova-wp8/pull/68


> WP8. Fix callback for plugins with native ui (capture, contactPicker, BarcodeScanner,
other)
> --------------------------------------------------------------------------------------------
>
>                 Key: CB-8139
>                 URL: https://issues.apache.org/jira/browse/CB-8139
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: WP8
>            Reporter: Sergey Grebnov
>            Assignee: Sergey Grebnov
>            Priority: Critical
>
> The [CB-7028] seems to be causing an issue with a barcode scanning, contact picker, media
capture plugins. When the plug-in is launched to show some additional native ui (via a Task),
it appears the WebBrowser_Unloaded event is triggered, which removes all of the callbacks,
including those for the plug-in that launched. As a result, when the plugin tries to return
data back to the script, it fails to do so.
> Sample code for org.apache.cordova.media-capture
> {code}
> // capture callback
> var captureSuccess = function (mediaFiles) {
>     alert('success: ' + JSON.stringify(mediaFiles));
> };
> // capture error callback
> var captureError = function (error) {
>     alert('Error code: ' + error.code, null, 'Capture Error');
> };
> // start video capture
> navigator.device.capture.captureVideo(captureSuccess, captureError, { limit: 1 });
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message