Skip to main content

Installation

Install and initialize the ContactsManager SDK in your client application.

Swift Package Manager

Add the ContactsManager package to your Swift project by adding it as a dependency in your Package.swift file:
Or in Xcode:
  1. Go to File > Swift Packages > Add Package Dependency
  2. Enter the repository URL: https://github.com/arpwal/contactsmanager-ios.git
  3. Specify a minimum version of <latest-version> from the repository
  4. Click Next and complete the integration

SDK Initialization

Accessing the Service

The ContactsManager SDK provides a comprehensive API through the ContactsService class. Here’s how to access and use the service:

Error Handling

The SDK provides comprehensive error handling across all platforms:
Important: Secure Your Users’ DataServer-side token generation is required to ensure the security of your users’ contact data. By handling authentication through your server, you establish a two-factor security model:
  1. API Key verification
  2. Server-generated token validation
This approach ensures that only authenticated devices with valid server-issued tokens can access your users’ contact data. Your server maintains complete control over data access, allowing you to:
  • Authenticate users through your existing auth system
  • Immediately revoke access when needed
  • Protect against unauthorized data access
  • Monitor and audit access patterns
See the server setup section in the Quickstart guide for implementation details.