thunderbird-android icon indicating copy to clipboard operation
thunderbird-android copied to clipboard

QR-Code doesn't work

Open batty-h opened this issue 1 year ago • 68 comments

Checklist

  • [X] I have used the search function to see if someone else has already submitted the same bug report.
  • [X] I will describe the problem with as much detail as possible.

App

Thunderbird for Android

App version

8.0

Where did you get the app from?

Google Play

Android version

15

Device model

Google Pixel 7

Steps to reproduce

Start Thunderbird for Android for the first time Choose "Import Settings" via QR-Code Scan QR-Code from the Desktop computer

Expected behavior

Thunderbird for Android import the settings via QR-Code

Actual behavior

If the destktop settings include an POP3-Gmail-Account with a "recent:" in front of the name ("Recent Mode"), Thunderbird for Android want read the QR-Code (no reaction / Information / Failure code)

note: The QR-Code is readable by another QR-Code-Scanner

Logs

No response

batty-h avatar Nov 06 '24 14:11 batty-h

I too have this problem on two Android devices. Some additional details:

  1. Desktop TB version 128.4.1esr (64-bit) on Kubuntu Linux.
  2. Android OS Version 13 on OnePlus Nord2 phone and Blackview Active 8 tablet.
  3. After the step 'Select Import settings' the camera opens, with no opportunity to 'Tap Scan QR code and hold your phone over this code'. The image is not recognised.
  4. Also, normal QR Code readers do not seem to recognise the image as a valid code.

TerryJColes avatar Nov 07 '24 08:11 TerryJColes

Same issue, although I could 'scan' one of the QRs (1 of 2) by simply clicking done button. However, after this step one has to again start the process to read the other QRs following the same method.

Note: it seems one does not have to align the code instead take it from a little bit far.

umgpy avatar Nov 07 '24 09:11 umgpy

I too can't import via QRs. TB Desktop 128.4.2esr (64-bit) with 44 mailaccounts (IMAP/POP3 mixed) running on Windows 11 Pro (build 22631.4317). The generated QRs are not recognized by Thunderbird for Android Version 8.0 running on

  1. Samsung Galaxy S24, Android Version 14, One UI-Version 6.1
  2. Lenovo Yoga Tab 13 , Android Version 13 note: The QR-Code is readable on both devices by another QR-Code-Scanner -- text will be shown

MartinMaier avatar Nov 09 '24 10:11 MartinMaier

I noticed a similar problem while exporting an Outlook account from desktop, the resulting QR Code contained the following snippet:

[[[0,"smtp.office365.com",587,2,6,"[email protected]",""],[null,""]]]

I compared it with similar accounts and noticed that this seems to be the sender name and email address. After filling these empty fields in Thunderbird Desktop, I was able to import it without problems on mobile.

Bungeefan avatar Nov 10 '24 17:11 Bungeefan

Same for me using Fairphone FP4 with e-OS 2.4.1 and TB Desktop 128.4.2esr on Ubuntu 24.04...

Scanning starts but doesn't scan the QR code (being 2 QR codes or 1 displayed by TB Desktop)

Another QRcode scanner can read the QRcode (QR scanner from Privacy Friendly Apps using ZXing library)

Eric Collart

ecollart2 avatar Nov 14 '24 11:11 ecollart2

Same issue for me on Android.

-Desktop TB version 128.4.1esr (64-bit) Ubuntu Mate. -Android 14 -Pixel 5

After the step 'Select Import settings' the camera opens and a DONE button is shown but pressing it does nothing but move to the next page without any settings transferred.

gitrazorhub avatar Nov 14 '24 22:11 gitrazorhub

I'm not sure what resolved this for me, but I was notified by my Linux desktop of a Thunderbird update (together with quite a few possibly unrelated updates), and subsequent to this I was able to export / import my settings to my phone.

TerryJColes avatar Nov 16 '24 07:11 TerryJColes

Just tried to import settings onto my Blackview Active 8 tablet, this time with no success.

So it's not all good news.

TerryJColes avatar Nov 16 '24 09:11 TerryJColes

same

Ghosty01 avatar Nov 21 '24 08:11 Ghosty01

Temporary fix: switch to light theme on the desktop application.

ironhak avatar Nov 24 '24 08:11 ironhak

hi ironhak .. same behaviour as with dark theme .. no import!

MartinMaier avatar Nov 24 '24 12:11 MartinMaier

hi ironhak .. same behaviour as with dark theme .. no import!

Did you set desktop thunderbird app to light theme?

ironhak avatar Nov 24 '24 12:11 ironhak

Yes .. but this doesn't change the colors of the QR-Code and it's background.

MartinMaier avatar Nov 24 '24 12:11 MartinMaier

Yes .. but this doesn't change the colors of the QR-Code and it's background.

I know background color of the QR does not change, but to me setting Thunderbird desktop theme to Light fixed the import. Other than that I'm afraid I can't help

ironhak avatar Nov 24 '24 13:11 ironhak

changing app to light theme fixed for me also

weslleyramos avatar Dec 22 '24 16:12 weslleyramos

I learned that this is not a problem of thunderbird, but most qr codes wont be read properly when the background (not just the background of the code, i mean the vast majority backlground of what the camera see) is dark. An easy fix would be to let have thunderbird page background to white on the qr code section, even if the app is in dark mode.

ironhak avatar Dec 22 '24 16:12 ironhak

Same here - would be great to have that issue fixed.

MAWSpitau avatar Dec 23 '24 11:12 MAWSpitau

Not Working in light mode also.

manikandancode avatar Dec 28 '24 12:12 manikandancode

The QR code spec defines a "quiet area" around the QR code where we're already using the recommended amount of white. There are a number of reasons scanning could fail, it is hard to focus on them all in this issue.

  • Make sure you are on the latest Thunderbird Desktop version
  • Check if it work in light mode
  • Scan the QR code with another app, view the text. If it contains a null anywhere we'll want to know some more details about that account. See https://bugzilla.mozilla.org/show_bug.cgi?id=1934323 which has some troubleshooting steps from our Desktop developers.

For this issue let's maybe focus on the original reporter - @batty-h is this issue resolved for you?

kewisch avatar Jan 02 '25 16:01 kewisch

Updated desktop client, set everything to light mode and no results. I cannot scan the QR codes.

mikaelfritts avatar Jan 08 '25 23:01 mikaelfritts

We're going to need a little more detail to be able to reproduce or troubleshoot. That third bullet point above is the next step for you.

kewisch avatar Jan 09 '25 08:01 kewisch

After spending a lot of time in tests, I've recognized that a QR transfer of data is only possible with a maximum of three email accounts ( only 1 QR code). In my case I have 55 accounts. So In my case I would have to select the transferpage, deselect 52 accounts manually (a deselect of all isn't possible) and do the transfer. That's not the way to transfer many accounts especially considering that the export/import in the android-app also doesn't work.

MartinMaier avatar Jan 09 '25 08:01 MartinMaier

Please consult the support page for details on how to import accounts from Thunderbird for desktop: https://support.mozilla.org/en-US/kb/thunderbird-android-import

@MartinMaier: Exporting 55 accounts at once should be possible, although it will lead to a lot of QR codes being generated. You'll have to press the "Next" button to display the next QR code in the sequence.

If there's a problem with one of the accounts, the QR code containing the data for that account most likely won't be recognized by the Android app. In that case we need a dump of the data in that QR code (the QR code scanner "Binary Eye" works well for this) or a screenshot of it. Make sure to disable exporting passwords when generating the QR code to be shared for debugging!

cketti avatar Jan 09 '25 10:01 cketti

As I already described ... as soon as the export QR exeeds the quantity of 1 .. the app will not start to import. What I can do is ... select 3 accounts then export ... import will be ok ... select another 3 accounts then export ... import will be ok .... and so on ... and so on ...

MartinMaier avatar Jan 09 '25 11:01 MartinMaier

As I already described ... as soon as the export QR exeeds the quantity of 1 .. the app will not start to import. What I can do is ... select 3 accounts then export ... import will be ok ... select another 3 accounts then export ... import will be ok .... and so on ... and so on ...

Each QR code contains information about how many QR codes are part of the series. The app will automatically start the import once all of the QR codes in a series have been scanned. However, you can also trigger the import with the data from the QR codes scanned so far by pressing the "Done" button in the Android app.

cketti avatar Jan 09 '25 12:01 cketti

For those of you who are having issues where it works in light mode but not in dark mode, could you install this extension and see if it works better? It increases the quiet zone around the QR code, though as a side effect the QR code also gets a bit smaller.

mobile_export_qr_tweak-1.0.0.zip

kewisch avatar Jan 09 '25 13:01 kewisch

@MartinMaier: The data for the outgoing server mx2ef6.netcup.net with the usernames amazon@mmaier…, aqara@mmaier…, blink@mmaier…, broadlink@mmaier…, delonghi@mmaier…, and disney@mmaier… all use an authentication type of null. This is not allowed and probably a bug in the desktop app. Can you please take a screenshot of the outgoing server settings for one such instance in Thunderbird desktop?

cketti avatar Jan 09 '25 13:01 cketti

Hi cketti, so ... I've added all missing authentication types. After that the import of all acounts are Ok. by the way .... is it possible to remove my zip file?

MartinMaier avatar Jan 09 '25 15:01 MartinMaier

I've removed the comment with the file, though GitHub may still retain the file information separately which we cannot control.

kewisch avatar Jan 09 '25 15:01 kewisch

@MartinMaier: It's great that export and import now works for you. But it would help other users if we could track down the bug in Thunderbird desktop. Do you remember what the authentication type was set to before you changed it?

cketti avatar Jan 09 '25 15:01 cketti