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

How to read Android contact Group Membership information? #29

Closed
TC74 opened this issue Aug 30, 2021 · 6 comments
Closed

How to read Android contact Group Membership information? #29

TC74 opened this issue Aug 30, 2021 · 6 comments

Comments

@TC74
Copy link

TC74 commented Aug 30, 2021

How to read Android contact Group Membership information?

@joachim-quis
Copy link
Contributor

Hi @TC74, this is high priority in my list of next features. Added it to the list of feature requests, stay tuned :)

@TC74
Copy link
Author

TC74 commented Sep 8, 2021

BIG thanks! We are planning to use the Contact Group as a meant to filter contacts based on grouping e.g. Primary School, Ex-colleague.

@TC74 TC74 closed this as completed Sep 8, 2021
@joachim-quis
Copy link
Contributor

Done in version 1.1.1.

@TC74
Copy link
Author

TC74 commented Sep 10, 2021 via email

@TC74
Copy link
Author

TC74 commented Sep 10, 2021 via email

@joachim-quis
Copy link
Contributor

Correct :) On Android the relevant classes are ContactsContract.CommonDataKinds.GroupMembership and ContactsContract.Groups.

You can now see the groups by fetching contacts via FlutterContacts.getContacts(withProperties: true, withGroups: true) and for example the group name will be in contact.groups[0].name.

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

No branches or pull requests

2 participants