You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to put the same code as yours this.qrScanner.prepare() .then((status: QRScannerStatus) => { if (status.authorized) { // camera permission was granted // start scanning const scanSub = this.qrScanner.scan().subscribe((text: string) => { console.log('Scanned something', text); this.qrScanner.hide(); // hide camera preview scanSub.unsubscribe(); // stop scanning }); } else if (status.denied) { // camera permission was permanently denied // you must use QRScanner.openSettings() method to guide the user to the settings page // then they can grant the permission from there } else { // permission was denied, but not permanently. You can ask for permission again at a later time. } }) .catch((e: any) => console.log('Error is', e)); }
but on android platform ask me about permissions, then nothing happens,
how I can run this code
I am using angular, cordova
thanks
The text was updated successfully, but these errors were encountered:
I try to put the same code as yours
this.qrScanner.prepare() .then((status: QRScannerStatus) => { if (status.authorized) { // camera permission was granted // start scanning const scanSub = this.qrScanner.scan().subscribe((text: string) => { console.log('Scanned something', text); this.qrScanner.hide(); // hide camera preview scanSub.unsubscribe(); // stop scanning }); } else if (status.denied) { // camera permission was permanently denied // you must use QRScanner.openSettings() method to guide the user to the settings page // then they can grant the permission from there } else { // permission was denied, but not permanently. You can ask for permission again at a later time. } }) .catch((e: any) => console.log('Error is', e)); }
but on android platform ask me about permissions, then nothing happens,
how I can run this code
I am using angular, cordova
thanks
The text was updated successfully, but these errors were encountered: