w3c / contact-picker

Contact Picker API
https://www.w3.org/TR/contact-picker/
Other
74 stars 8 forks source link

Iterator getter is not callable #25

Closed ashinzekene closed 5 years ago

ashinzekene commented 5 years ago

Tried this on chrome android 77, under the flag

const contacts = await navigator.contacts.select({properties: ['name']});

Got error Failed to execute 'select' on 'ContactManager': Iterator getter is not callable

rayankans commented 5 years ago

You should use navigator.contacts.select(['name']).

Where did you get that snippet from? That was the old version of the API.

ashinzekene commented 5 years ago

Thank you. I tried this and I got the error on Chrome 76 At least one property must be provided The above snippet worked though.

I just updated to Chrome 77, I'm getting that the API is not supported, even with the flag enabled

ashinzekene commented 5 years ago

My bad, new API works on Android

rayankans commented 5 years ago

Thanks for checking. Issues here are for specification related things, implementation issues should go to the browser's bug tracking system. In your case I'd file a bug in https://crbug.com/ under the Blink>Contacts component.

If you got that example API snippet from somewhere recently, please let me know so I can update it :)