Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

hideBackground not working? #15

Closed
k3341095 opened this issue Jan 12, 2021 · 3 comments
Closed

hideBackground not working? #15

k3341095 opened this issue Jan 12, 2021 · 3 comments
Labels
needs reply needs reply from the user

Comments

@k3341095
Copy link

Version
Dev mode.......... capacitor
Pkg quasar........ v1.15.0
Pkg @quasar/app... v2.1.14
Debugging......... enabled
Running mode...... IDE (manual)

Desktop (please complete the following information):

  • OS: windows
  • Browser chrome

Smartphone (please complete the following information):

  • Device: samsung galaxy s10
  • OS: 10.0
  • Browser
  • Version [e.g. 22]

Additional context
Hello.. Thank you for making a great program.
There are some strange things, so I ask you a question.

I am using the quasar framework.
My source is
methods: {
async checkPermission() {
const { BarcodeScanner } = Plugins;
const status = await BarcodeScanner.checkPermission({ force: true });

  if (status.granted) {
    // 권한이 부여 된 사용자
    return true;
  }

  return false;
},
async startScan() {
  try {
    const { BarcodeScanner } = Plugins;

    const status = await this.checkPermission();

    await BarcodeScanner.hideBackground();
    const result = await BarcodeScanner.startScan();
    if (result.hasContent) {
      alert(result.content);
    }
  } catch (error) {
    alert(error);
    console.error(error);
  }
}

When I run the scan... nothing happens.
It seems that hideBackground is not doing anything.

However, when the barcode is scanned... the barcode is output as an alert.

It works fine, but I can't see the scan screen.

Is there any other way I can try?

@tafelnl
Copy link
Member

tafelnl commented Jan 12, 2021

@tafelnl tafelnl added the needs reply needs reply from the user label Jan 12, 2021
@k3341095
Copy link
Author

There was an image on my page.
I set the image to none and it works fine.
Thank you..
The zxing module seems to be slow to recognize code 128..
Trying to apply another module. mlkit

@tafelnl
Copy link
Member

tafelnl commented Jan 13, 2021

Good to hear you got it working! If you have further questions about code 128 or anything else, please open a new issue 💯

@tafelnl tafelnl closed this as completed Jan 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs reply needs reply from the user
Projects
None yet
Development

No branches or pull requests

2 participants