FossifyOrg / Contacts

Easy and quick contact management with no ads, handles groups and favorites too.
https://www.fossify.org
GNU General Public License v3.0
245 stars 23 forks source link

App drops field values when adding through intent compared to that of importing vcf #105

Open N1N74 opened 3 months ago

N1N74 commented 3 months ago

Checklist

Affected app version

1.0.1

Affected Android/Custom ROM version

Android 14/ OneUI 6.0

Affected device model

Samsung galaxy M33

How did you install the app?

F-Droid / IzzyOnDroid

Steps to reproduce the bug

Essentially a bug report on findings here:

  1. Have an app (like for eg. Barcode scanner) send intent to Fossify contact with fields such as secondary number, website, job title, etc.
  2. Fossify contacts drops some fields entirely (secondary number, website, company, job position are dropped)
  3. Use another app for the intent to confirm that other apps can recognize the secondary number perfectly fine (not ConnectYou, also has same issue. Samsung default contacts worked.)
  4. Save the vcard as a vcf and open in Fossify contacts
  5. This time, all the fields are imported faithfully

Expected behavior

Recognize secondary number, website, company, job position, etc through intent properly.

Actual behavior

Secondary number, website, company, job position are all dropped.

Screenshots/Screen recordings

No response

Additional information

Copy pasting example intent that was originally passed via barcode scanner, (see barcode scanner issue), to Fossify contacts using app manager's interceptor:

URI intent:#Intent;action=android.intent.action.INSERT;type=vnd.android.cursor.dir/raw_contact;launchFlags=0x3000000;S.secondary_phone=%2B1%20672%20326%2065;S.phone_type=WORK;S.postal=4855%2C%20lonely%20Oak%20Drive%0ASpanish%20fort%0AAL%0A36527%0AUSA;S.name=Sara%20Leon;S.email=sara%40gmail.com;S.notes=;S.phone=86346253;S.company=Alena%20ltd;S.email_type=WORK;S.job_title=Co-founder;S.secondary_phone_type=CELL;end

VERSION 1
ACTION  android.intent.action.INSERT
TYPE    vnd.android.cursor.dir/raw_contact
FLAGS   0x3000000
EXTRA   secondary_phone 12  +1 672 326 65
EXTRA   phone_type  12  WORK
EXTRA   postal  12  4855, lonely Oak Drive
Spanish fort
AL
36527
USA
EXTRA   name    12  Sara Leon
EXTRA   email   12  sara@gmail.com
EXTRA   notes   12  
EXTRA   phone   12  86346253
EXTRA   company 12  Alena ltd
EXTRA   email_type  12  WORK
EXTRA   job_title   12  Co-founder
EXTRA   secondary_phone_type    12  CELL

QR code which helped barcode scanner send the intent is found on this random google image. The vcard in question is copy pasted as:

BEGIN:VCARD
VERSION:3.0
N:Leon;Sara
FN:Sara Leon
ORG:Alena ltd
TITLE:Co-founder
ADR:;;4855, lonely Oak Drive;Spanish fort;AL;36527;USA
TEL;WORK;VOICE:86346253
TEL;CELL:+1 672 326 65EMAIL;WORK;INTERNET:sara@gmail.com
URL:www.yourwebsite.com
END:VCARD
Aga-C commented 3 months ago

I can confirm that this bug also occurs when sharing contact from QR Scanner app, so it's not related to particular app.

danpeig commented 3 months ago

Having the same problem here. Galaxy S23 with Android 14.