Compatibility and Requirements
ContactsService is available in Lightning apps distributed using:
- Mobile Publisher for Salesforce App
- Mobile Publisher for Experience Cloud
ContactsService is fully functional when used in a Lightning app or Lightning site run from a compatible Salesforce mobile app on a compatible iOS or Android mobile device. See Requirements for the Salesforce Mobile App, Requirements for Mobile Publisher for Salesforce App, or the requirements page for your target mobile app for specific device and operating system requirements.
ContactsService is not fully functional when running on other devices, such as a desktop, or when running in a web browser, even on a mobile device. It requires one of the mobile apps listed above. The ContactsService API is accessible in Lightning Experience on all devices, so your code won’t fail due to missing functions. However, when your app runs in a browser—desktop or mobile—it can use only ContactsService constants and utility functions. Attempting any contacts-related operation will fail.