Sergey Grebnov created CB-8139:
----------------------------------
Summary: 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
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) {
navigator.notification.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: [email protected]
For additional commands, e-mail: [email protected]