We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Adding a contact to a group doesn't work on IOS when the "Default Account" for contacts is not iCloud.
This contact is added to the group but is removed automatically shortly after it's added. I specifically tested using a Gmail default account.
Code example
Group? group; group = (await FlutterContacts.getGroups()) .firstWhereOrNull((element) => element.name == 'My group'); group ??= await FlutterContacts.insertGroup(Group('mygroup', 'My Group')); final newContact = Contact() ..name.first = contact.firstName ..name.last = contact.lastName ..phones = [if (contact.phone != null) Phone(contact.phone!)] ..emails = [if (contact.email != null) Email(contact.email!)] ..notes = [if (contact.notes != null) Note(contact.notes!)]; final insertedContact = await newContact.insert(); insertedContact.groups.add(group); insertedContact.update(withGroups: true);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Adding a contact to a group doesn't work on IOS when the "Default Account" for contacts is not iCloud.
This contact is added to the group but is removed automatically shortly after it's added. I specifically tested using a Gmail default account.
Code example
The text was updated successfully, but these errors were encountered: