The contacts
read-only property of the Navigator
interface returns a ContactsManager
interface which allows users to select entries from their contact list and share limited details of the selected entries with a website or application.
Value
A ContactsManager
object. Two successive calls return the same object.
Examples
The following code checks whether the Contact Picker API is supported.
const supported = "contacts" in navigator && "ContactsManager" in window;
Specifications
Browser compatibility
|
Desktop |
Mobile |
|
Chrome |
Edge |
Firefox |
Internet Explorer |
Opera |
Safari |
WebView Android |
Chrome Android |
Firefox for Android |
Opera Android |
Safari on IOS |
Samsung Internet |
contacts |
No |
No |
No |
No |
No |
No |
80 |
80 |
No |
57 |
14.5 |
14.0–22.0This API was exposed but failed upon opening a contact selector.
|
See also