Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70443

Barcode reader crashes the app after permission request

$
0
0

@ioclaudio wrote:

Hi,
on an Ioni4 app, when I open the camera to read the QrCode the app crashes.
It crashes after the request of the permission of using the camera of the phone.
I’m using
phonegap-plugin-barcodescanner 8.0.1 "BarcodeScanner" and @ionic-native/barcode-scanner ^5.0.0 .

I’ve tried on Android6 and Android9 the result is the same.

Probably I didn’t install the right version of some component, but how can I know which of them is wrong?

This is the configuration of the system:

C:\Software\myapp>ionic info
Ionic:
   ionic (Ionic CLI)             : 4.12.0 
   Ionic Framework               : @ionic/angular 4.3.0
   @angular-devkit/build-angular : 0.13.8
   @angular-devkit/schematics    : 7.2.4
   @angular/cli                  : 7.3.8
   @ionic/angular-toolkit        : 1.4.1
Cordova:
   cordova (Cordova CLI) : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms     : android 8.0.0, ios 5.0.1
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 7 other plugins)
System:
   NodeJS : v10.15.3 (C:\Program Files\nodejs\node.exe)
   npm    : 6.9.0
   OS     : Windows 10
C:\Software\myapp>cordova plugin ls
cordova-plugin-add-swift-support 2.0.2 "AddSwiftSupport"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-geolocation 4.0.1 "Geolocation"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 3.1.2 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
phonegap-plugin-barcodescanner 8.0.1 "BarcodeScanner"
 @ionic-native/barcode-scanner        ^5.0.0  
 @ionic-native/core                   ^5.0.0  
 @ionic-native/geolocation            ^5.0.0  
 @ionic-native/splash-screen          ^5.0.0  
 @ionic-native/status-bar             ^5.0.0 

What could be the problem?
I have no error either running it in debug “ionic cordova run android”.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70443

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>