Skip to content

Installing the iOS Pulsate SDK

The Pulsate iOS SDK is the bridge between your customers’ mobile devices and the Pulsate server. It ships as a precompiled PULPulsate.framework and is imported into your app as import PULPulsate.

Pulsate distributes the SDK through Swift Package Manager (SPM). From Xcode 11 onwards, you can use Swift Package Manager to add the Pulsate SDK to your project.

  1. In Xcode, select File → Swift Packages → Add Package Dependency.
  2. Enter the repository URL:
    https://github.com/PulsateHQ/pulsate-ios-sdk.git
  3. Specify the version: 4.7.2 or later.
  4. Add the PULPulsate library to your app target.

Import it anywhere you use Pulsate:

import PULPulsate

Pulsate uses CoreLocation for geofencing. Add the following keys to your app’s Info.plist, each with a message explaining to the user why location access is requested:

Key Purpose
NSLocationWhenInUseUsageDescription Shown when requesting foreground location
NSLocationAlwaysAndWhenInUseUsageDescription Shown when requesting always-on location

For example:

We use this to provide the best experience possible inside our store. We also send relevant communications based on your location.

Once the SDK is installed, continue to Running the Pulsate SDK.