Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Blackberry10 - Both on error and on success functions execute #108

Closed
jmaster10 opened this issue Nov 20, 2015 · 2 comments
Closed

Blackberry10 - Both on error and on success functions execute #108

jmaster10 opened this issue Nov 20, 2015 · 2 comments

Comments

@jmaster10
Copy link

Hello,

I'm experiencing strange activity when using the bar code scanner on a blackberry10 device (z10). Both the on error and on success calls are being trigger. Here is what is happening.

  1. Scan bar code
    2.onError function is called. Returns an error message of undefined
    3.onSuccess function is called. Returns bar code information.

Project details:
Cordova: 3.7
Cordova CLI: 5.1.1
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.0
Ionic Version: 1.1.0
Ionic CLI Version: 1.6.1
Ionic App Lib Version: 0.3.3
OS: Mac OS X Yosemite
Node Version: v0.12.7

Sample Code:

   cordova.plugins.barcodeScanner.scan(
      function (result) {
          alert("We got a barcode\n" +
                "Result: " + result.text + "\n" +
                "Format: " + result.format + "\n" +
                "Cancelled: " + result.cancelled);
      }, 
      function (error) {
          alert("Scanning failed: " + error);
      }
   );

Any idea how to prevent this behavior?

Thanks,
J

@timwindsor
Copy link
Collaborator

Try with the latest Cordova and BlackBerry platforms. That should resolve it.

@lock
Copy link

lock bot commented Jun 8, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

4 participants