SunnyApp / flutter_contact

A flutter plugin for retrieving, creating, saving, and watching contacts on native devices
BSD 3-Clause "New" or "Revised" License
81 stars 62 forks source link

no callback on Contacts.addContact(contact); #1

Closed Mister-Hope closed 4 years ago

Mister-Hope commented 4 years ago

In my project, when I call Contacts.addContact(contact), it is working ,but whether I use await or then, the code below / call back funtion is not being called. Also, no message is given in the console

I wounder if you could check it.

void xxx() async {
 print('start');
await Contacts.addContact(contact);
print('success');
}
timekone commented 4 years ago

I have the same problem. Interestingly enough, the contact gets added successfully to device's contact list anyway.

Mister-Hope commented 4 years ago

I have the same problem. Interestingly enough, the contact gets added successfully to device's contact list anyway.

Then it seems to be a bug.

ericmartineau commented 4 years ago

Are you seeing this for iOS? Android? Both?

ericmartineau commented 4 years ago

I found an issue on Android. Try version 0.5.1

Mister-Hope commented 4 years ago

Only Android :sweat_smile: I am a poor guy who can not afford a mac

ericmartineau commented 4 years ago

@Mister-Hope Did version 0.5.1 fix it?