-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Scanner takes time to open (QRcode) #601
Comments
@uzumakinaruto123 I really doubt it is the camera plugin. |
Yes! Even I think the same. But, thought it was worth mentioning as these were major differences(oreo & camera) between first(slow) and second(fast) observation. |
I have a Oreo (8.1) custom ROM installed on a three and half years old OnePlus One but I don't have any lag. Instead, I have an issue where if I press back on Scanning screen, instead of going back to previous screen, it exits the app. |
Im also having this problem. Every time when i call the scanner it starts with a few seconds delay (usualy about 3-5s). Here are my specs:
Could you guys @uzumakinaruto123 @macdonst @saurabhDuzumaki also write some more specs, so maybe we can figure out, what the problem is? |
i tried it with cordova-plugin-camera 4.0.3 "Camera" and saw no differencies. The scanner still starts with a delay. |
I've found the solution for my problem. |
I have a client complaining about he start up speed and I have it set to portrait but tis still slow. IS there any other ways to speed this up or a way to keep the scanner open and pass that data to the app? |
very slow on start up Iphone 7plus |
I'm facing the same issue too on iOS 12, iPhone X |
I'm facing a similar (but even more weird) issue. The camera on iOS only opens: Has anyone faced this issue? I think those situations cause iOS to trigger some event (but don't know which one) and then the camera is able to open.. maybe I could simulate this event? |
Guys, FYI I've just solved my camera opening problem adding "gap://ready file:;" to my Content-Security-Policy meta tag as suggested in #490 Now the camera opens as expected on iOS, but it takes around 1s to do so. I'll continue to work on that and I'll let you know if I find some way to shorten this time. |
Expected Behaviour
Scanner to open as soon as
this.barcodeScanner.scan()
is called.Actual Behaviour
Currently, when
this.barcodeScanner.scan()
is called it lags/timesout for 3 to 4 seconds and thenopens the scanner.Reproduce Scenario (including but not limited to)
Initially when my device was running on Android N (7.1.2) and project didn't had camera plugin, scanner use to open quickly.
I updated my device to oreo (8.0.0) after which I installed Camera plugin and now scanner opens slowly.
Either Android O(8.0.0) is the issue or camera plugin is.
Steps to Reproduce
this.barcodeScanner.scan()
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
Android 8.0.0
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
Device: Xiaomi Mi A1
Cordova CLI version and cordova platform version
Plugin version
Sample Code that illustrates the problem
Logs taken while reproducing problem
The text was updated successfully, but these errors were encountered: