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