Add contact
- 18 May 2022
- 1 Minute to read
- DarkLight
- PDF
Add contact
- Updated on 18 May 2022
- 1 Minute to read
- DarkLight
- PDF
Article Summary
Adds a new contact to the device contacts list.
Once the contact has been added, the first output is triggered.
If there is an error, the second output is triggered.
If the user hasn't given permission to access contacts, they will be requested automatically.
Input arguments
Label | Key | Type | Required? | Default | Description |
---|---|---|---|---|---|
New contact | contact | Object | Yes | – | New contact to add to the contacts list. |
Output arguments
Number of outputs: 2
No output arguments.
Events
No events.
Errors
Label | Code | Description |
---|---|---|
Unknown error | unknown | Thrown if an unknown error occurred while getting the contacts. |
Was this article helpful?