Skip to main content

Integrate SDK

Let's start coding in your iOS project!

Initialize and Start EdgePulse

  1. Import the EdgePulse module at the top of your main App file (SwiftUI) or App Delegate (UIKit):
main.swift
import EdgePulse
  1. Create a variable for EdgePulse that is accessible throughout the class:
main.swift
var edgePulse: EdgePulse
  1. Initialize the EdgePulse variable in your init function, providing your access token:
main.swift
edgePulse = EdgePulse(accessToken: "<YOUR_ACCESS_TOKEN>")
  1. Once EdgePulse is initialized, start the SDK to begin tracking:
main.swift
edgePulse.start()