[ https://issues.apache.org/jira/browse/CB-8139?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Grebnov updated CB-8139: ------------------------------- Description: 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} was: 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} > 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-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org