Add contact import from QR code

Contacts could only be imported by pasting `meshcore://<hex advert>` from
the clipboard, so contact QR codes and links shared by the official app
(`meshcore://contact/add?name=...&public_key=...&type=...`) could not be
used at all.

Add a contact QR scanner screen, reachable from the contacts menu, that
scans with the camera or decodes a QR code from a photo in the gallery.
Both the official contact-card link and the existing hex advert form are
accepted; cards are applied with CMD_ADD_UPDATE_CONTACT and advert blobs
keep using CMD_IMPORT_CONTACT.

Fixes #529
This commit is contained in:
Gianluca Boiano committed 2026-09-13 00:23:46 +02:00
1 parent 92e1d15d1c
commit d0583f2039
28 files changed
+1231 -16

No files matched your search

+30
View File
@@ -7372,6 +7372,36 @@ abstract class AppLocalizations {
/// **'Add Contact from Clipboard'**
String get contacts_addContactFromClipboard;
/// No description provided for @contacts_scanQrCode.
///
/// In en, this message translates to:
/// **'Scan QR Code'**
String get contacts_scanQrCode;
/// No description provided for @contacts_scanQrInstructions.
///
/// In en, this message translates to:
/// **'Point the camera at a MeshCore contact QR code'**
String get contacts_scanQrInstructions;
/// No description provided for @contacts_qrFromGallery.
///
/// In en, this message translates to:
/// **'Scan QR from Gallery'**
String get contacts_qrFromGallery;
/// No description provided for @contacts_noQrCodeFound.
///
/// In en, this message translates to:
/// **'No QR code found in the selected image.'**
String get contacts_noQrCodeFound;
/// No description provided for @contacts_qrGalleryFailed.
///
/// In en, this message translates to:
/// **'Could not open the gallery.'**
String get contacts_qrGalleryFailed;
/// No description provided for @contacts_ShareContact.
///
/// In en, this message translates to: