spesmilo / electrum

Electrum Bitcoin Wallet
https://electrum.org
MIT License
7.41k stars 3.08k forks source link

Android QR scanner does not detect QR code on some phones #8883

Open gustavo-pin opened 8 months ago

gustavo-pin commented 8 months ago

Device: Samsung Galaxy M52 5G Download: PlayStore Android Version: 13

SomberNight commented 8 months ago

Please provide more details. In what way does it not work? What are you doing exactly, and what happens? Did older versions of Electrum also exhibit the problem?

gustavo-pin commented 8 months ago

Please provide more details. In what way does it not work? What are you doing exactly, and what happens? Did older versions of Electrum also exhibit the problem?

When I use the scan to make a payment or to import a public key it doesn't work. As soon as I point the camera at the QR code nothing happens.

https://github.com/spesmilo/electrum/assets/118580904/75485c9f-29f8-4604-a86e-764ef3c65bc7

(An exemple using a random address in https://mempool.space)

@SomberNight

SomberNight commented 8 months ago

I've just tested scanning the QR code from your video with the built-in scanner using my phone and it scanned it correctly. Perhaps the issue is specific to some devices or depends on the quality of the camera.

accumulator commented 8 months ago

I saw a noticable delay (eventually it took) when holding the scanner exactly level. When tilting a bit the detection was much faster.

accumulator commented 1 week ago

I ran into this issue again scanning a QR code for a bip21 address-only code bitcoin:3... from a coinbase wallet.

gustavo-pin commented 1 week ago

I ran into this issue again scanning a QR code for a bip21 address-only code bitcoin:3... from a coinbase wallet.

Did it work?

SomberNight commented 1 week ago

I ran into this issue again scanning a QR code for a bip21 address-only code bitcoin:3... from a coinbase wallet.

Have you tried setting the brightness to max on the display with the QR code? :P I found that lighting conditions matter a lot.

accumulator commented 1 week ago

Yes it was pretty bright. I managed to scan it successfully using https://github.com/SecUSo/privacy-friendly-qr-scanner which is also ZXing based.