iOS SDK
The Monita iOS SDK observes the vendor traffic leaving your app — currently Meta (Facebook), Google Firebase, Adobe Analytics and Google Ads — and streams it to the same property dashboards, detectors and alerts as your web traffic.
Before you start
Section titled “Before you start”Create a property with source type Mobile app (or reuse an existing property if you want web and app traffic together), configure your vendors, and copy the SDK token from Manage → Installation guide. See the Monita-side setup for vendor configuration.
Install
Section titled “Install”-
In Xcode, choose File → Add Package Dependencies and enter:
https://github.com/rnadigital/monita-ios-sdk.gitSelect the
masterbranch and finish — the SDK appears under Swift Package Dependencies. -
Add your token to
Info.plist:<key>MonitaSDKToken</key><string>Your-Token-Here</string> -
Initialize the SDK in your app delegate:
import MonitaSDKfunc application(_ application: UIApplication,didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {MonitaSDK.configure(enableLogger: true, // verbose logging during rollout; disable for releasebatchSize: 10, // events per upload batchcustomerId: "123456", // joins app events to your customer IDsconsentString: "Granted", // your consent state — feeds compliance reportingsessionId: "123456", // joins app events into sessionsappVersion: "1.0")return true}
Verify
Section titled “Verify”- Run the app with
enableLogger: trueand watch the console for Monita upload logs returning 204. - Fire a monitored vendor event (e.g. a Firebase log event) and check the property’s Visualisation view in the app — events appear within a minute or two.