QuisApp / flutter_contacts

MIT License
88 stars 143 forks source link

_contacts!.length =0 , if stored in google account #23

Closed Hararot closed 2 years ago

Hararot commented 3 years ago

I appreciate the good work (thanks),

Anyway I used this in my flutter app and it worked fine in the emulator. I had a contact ListView.builder with rows and columns to make a contact list with thumbnails, but when I tried it on a real Android 8.0 LG G5 phone the contact list did not work it was blank and no errors or crash massage it was just empty I tried it on my S9 Android 10.0 it worked fine.

Does this repository work on below Android 10 ? or did I need to edit something somewhere and I missed it.

Hararot commented 3 years ago

I appreciate the good work (thanks),

Anyway I used this in my flutter app and it worked fine in the emulator. I had a contact ListView.builder with rows and columns to make a contact list with thumbnails, but when I tried it on a real Android 8.0 LG G5 phone the contact list did not work it was blank and no errors or crash massage it was just empty I tried it on my S9 Android 10.0 it worked fine.

Does this repository work on below Android 10 ? or did I need to edit something somewhere and I missed it.

I found out the problem, I checked that it works on Android 8.0 by using emulator. I don't know how to explain this, but some devices like my LG G5 by default dos not save contacts in storage on phone it stores it somewhere else that this plugin dos not see, which in my case was on my google account so when I run _contacts!.length it was 0 which explain why the contact list was empty. I did not know how to solve this programmatically :(

but when I moved contacts to be stored in my phone contact list appeared

joachim-quis commented 3 years ago

Hi @Hararot ! Sorry for the late reply. I'm having trouble understanding where exactly your LG G5 is storing contacts. Is it in the SIM card? If so, is it fine to close this as a duplicate of #26 ?

joachim-quis commented 2 years ago

Closing, feel free to reopen if needed.

tralph3 commented 1 year ago

This is not a duplicate. The contacts are not stored in the SIM card, they are store in an online account, be it a Google account or, in my case, a DAVx5 account. The plugin cannot see these contancts, I don't have any stored in my phone's internal memory.