Skip to main content
Use this API to open the phone’s contact picker and select a contact.

Parameters

PropertyTypeRequiredDescription
successFunctionNoCallback with contact data
failFunctionNoCallback on failure
completeFunctionNoCallback that always executes

Success Callback

PropertyTypeDescription
nameStringContact name
mobileStringContact phone number

Code Example

my.choosePhoneContact({
  success: (res) => {
    console.log('Name:', res.name);
    console.log('Phone:', res.mobile);
  }
});

my.addPhoneContact

Add a phone contact