Skip to main content
The Native Contacts plugin lets users sync their device contacts with your app, enabling form completion and data enrichment based on lookup fields such as email or phone number. You can retrieve all contacts in bulk or prompt the user to select specific contacts through a native UI without building any contact infrastructure yourself. Common use cases include CRM data entry, field service lookups, social connection suggestions, and E-commerce address autofill.

Why use native contacts

  • CRM integration: Sync device contacts directly into your app’s workflow, eliminating manual data entry for sales and support teams.
  • Field service and operations: Look up and act on contact data in real time for scheduling, dispatch, and on-site workflows.
  • Social and E-commerce features: Enable social networking platforms and E-commerce shipping solutions to access contact data natively for connection recommendations or address autofill.

Implementation guide

App configuration

  1. Navigate to Native Plugins: In Median App Studio, go to the Native Plugins section.
  2. Enable Native Contacts: Toggle the plugin to enabled status.
Native Contacts plugin toggled on in the Native Plugins section of App Studio

Native Contacts plugin enablement

JavaScript Bridge implementation

All contact functionality is accessed through the Median JavaScript Bridge. Each method accepts either a callback function or returns a Promise. See Promises for async/await patterns.

Check contact permission status

Before accessing contacts, check whether the user has already granted permission. The app will automatically prompt for permission on first access, but this method lets you check current status without triggering a prompt.

Permission status values

Given the differences between both iOS and Android you can expect slightly different permission values based on the operating system. iOS Android

Retrieve all contacts

Fetch the complete contacts list stored on the device.
Note: On iOS the note field is not returned by getAll() by default. Accessing it requires the com.apple.developer.contacts.notes entitlement, which requires approval by Apple.

Present a native contact picker

Display the device’s native contact selection UI, allowing the user to choose one or multiple contacts. This is the recommended approach when you need explicit user selection rather than bulk access.
Note: The note field is available when using pickContact() on iOS, without any additional entitlement.

Response format

When permission is granted, all contact methods return an object in the following shape:
contacts is an array of contact objects. Available fields depend on the platform.

Contact fields

iOS Android

Array field schemas

phoneNumbers, emailAddresses, and postalAddresses are arrays of objects. All other fields are strings. Phone numbers
Email addresses
Postal addresses

Demo app

You can test the native contact features using our virtual demo app on iOS and Android simulators.
Last modified on December 3, 2026