Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Barcodescanner configurations #180

Closed
hamark opened this issue May 27, 2016 · 0 comments · Fixed by #221
Closed

Barcodescanner configurations #180

hamark opened this issue May 27, 2016 · 0 comments · Fixed by #221
Labels

Comments

@hamark
Copy link

hamark commented May 27, 2016

Hi All,

I would like to have access to configurations in barcodescanner.
I thought it was a barcodescanner problem (as you can see in the open issue here)

In summary :

I tried to change ionic-native to include options

    static scan(options?: {
        preferFrontCamera?: boolean;
        showFlipCameraButton?: boolean;
        prompt?: string;
        formats?: string;
        orientation?: string;
    }): Promise<any>;

In my TS I declared barcodescanner

BarcodeScanner.scan({"preferFrontCamera" : true}).then((barcodeData) => {
            // ...
        }, (err) => {
            // ...          
        });

Then in my console when debugging on android phone I've got this error:

BarcodeScanner.scan failure: success callback parameter must be a function

Anyone could help on this ?

@ihadeed ihadeed added this to the 1.2.5 milestone Jun 3, 2016
@ihadeed ihadeed closed this as completed in 4fdcbb5 Jun 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants