Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update issue #9

Closed
Billy-80 opened this issue Mar 16, 2021 · 3 comments
Closed

update issue #9

Billy-80 opened this issue Mar 16, 2021 · 3 comments

Comments

@Billy-80
Copy link

Billy-80 commented Mar 16, 2021

Hello first. Upon running the function below on Android, if the contact has a picture assigned it gets deleted ( seems to be deleted). Same happens when trying to update a contact name. When the function below runs, the address is updated successfully but the pic is not visible on the device native contacts app. I have tested on both an emulator and a real device. The same code works OK for IOS without issues.

fn1() async{

Contact testContact = await FlutterContacts.getContact('some ID');
Address testAddress = Address('test', customLabel: 'test' , label: AddressLabel.custom);
testContact.addresses.insert(0, testAddress);
await testContact.update();

}
This is on version ^0.2.2 as I haven’t yet migrated to null safety.

@joachimvalente
Copy link
Contributor

Hi, I'll look into this shortly. But in the meantime, you should be able to move to 0.3.3 (or more recent) even if you're not using null-safety in the rest of your project.

@joachim-quis
Copy link
Contributor

Hey @Billy-80 I could reproduce the issue. a391dbf should fix it, and I'll include in the next version.

@joachimvalente
Copy link
Contributor

Just cut a new version 0.3.3+1 with the fix. Thanks for reporting!

Feel free to reopen if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants