Access contacts from the device's native contacts manager. Chrome 77 or higher running on Android M or later required.
API / Contacts Picker
Codelab Flow
Intoduction
L
W
Contacts Picker API
Setting up
Define the "properties" and "select" type option you need
const props = ['name', 'email', 'tel'];
const options = { multiple: true };
Call the contacts method on pwa, the promise resolves with an object
// Do something with the promise value...
pwa.Contacts(props, options).then((res) => {
// Do something with contacts...
const contacts = res.ok ? res.contacts : null;
...});
Code sandbox
Feel free to learn more on the detailed Contacts Picker API documentation available here.