Data Subject Request API Version 1 and 2
Data Subject Request API Version 3
Key Management
Platform API Overview
Accounts
Apps
Audiences
Calculated Attributes
Data Points
Feeds
Field Transformations
Services
Users
Workspaces
Warehouse Sync API Overview
Warehouse Sync API Tutorial
Warehouse Sync API Reference
Data Mapping
Warehouse Sync SQL Reference
Warehouse Sync Troubleshooting Guide
ComposeID
Warehouse Sync API v2 Migration
Audit Logs API
Bulk Profile Deletion API Reference
Calculated Attributes Seeding API
Custom Access Roles API
Group Identity API Reference
Data Planning API
Pixel Service
Profile API
Events API
mParticle JSON Schema Reference
IDSync
AMP SDK
Initialization
Configuration
Network Security Configuration
Event Tracking
User Attributes
IDSync
Screen Events
Commerce Events
Location Tracking
Media
Kits
Application State and Session Management
Data Privacy Controls
Error Tracking
Opt Out
Push Notifications
WebView Integration
Logger
Preventing Blocked HTTP Traffic with CNAME
Workspace Switching
Linting Data Plans
Troubleshooting the Android SDK
API Reference
Upgrade to Version 5
Cordova Plugin
Identity
Direct URL Routing FAQ
Web
Android
iOS
Workspace Switching
Initialization
Configuration
Event Tracking
User Attributes
IDSync
Screen Tracking
Commerce Events
Location Tracking
Media
Kits
Application State and Session Management
Data Privacy Controls
Error Tracking
Opt Out
Push Notifications
Webview Integration
Upload Frequency
Preventing Blocked HTTP Traffic with CNAME
Linting Data Plans
Troubleshooting iOS SDK
Social Networks
iOS 14 Guide
iOS 15 FAQ
iOS 16 FAQ
iOS 17 FAQ
iOS 18 FAQ
API Reference
Upgrade to Version 7
Upgrade to Version 9
Getting Started
Identity
Upload Frequency
Getting Started
Opt Out
Initialize the SDK
Event Tracking
Commerce Tracking
Error Tracking
Screen Tracking
Identity
Location Tracking
Session Management
Initialization
Configuration
Content Security Policy
Event Tracking
User Attributes
IDSync
Page View Tracking
Commerce Events
Location Tracking
Media
Kits
Application State and Session Management
Data Privacy Controls
Error Tracking
Opt Out
Custom Logger
Persistence
Native Web Views
Self-Hosting
Multiple Instances
Web SDK via Google Tag Manager
Preventing Blocked HTTP Traffic with CNAME
Facebook Instant Articles
Troubleshooting the Web SDK
Browser Compatibility
Linting Data Plans
API Reference
Upgrade to Version 2 of the SDK
Getting Started
Identity
Alexa
Overview
Step 1. Create an input
Step 2. Verify your input
Step 3. Set up your output
Step 4. Create a connection
Step 5. Verify your connection
Step 6. Track events
Step 7. Track user data
Step 8. Create a data plan
Step 9. Test your local app
Overview
Step 1. Create an input
Step 2. Verify your input
Step 3. Set up your output
Step 4. Create a connection
Step 5. Verify your connection
Step 6. Track events
Step 7. Track user data
Step 8. Create a data plan
Step 1. Create an input
Step 2. Create an output
Step 3. Verify output
Node SDK
Go SDK
Python SDK
Ruby SDK
Java SDK
Introduction
Outbound Integrations
Firehose Java SDK
Inbound Integrations
Compose ID
Glossary
Data Hosting Locations
Migrate from Segment to mParticle
Migrate from Segment to Client-side mParticle
Migrate from Segment to Server-side mParticle
Segment-to-mParticle Migration Reference
Rules Developer Guide
API Credential Management
The Developer's Guided Journey to mParticle
Composable Audiences Overview
User Guide Overview
Warehouse Setup Overview
Audience Setup
Frequently Asked Questions
Overview
Overview
User Profiles
Overview
Create and Manage Group Definitions
Calculated Attributes Overview
Using Calculated Attributes
Create with AI Assistance
Calculated Attributes Reference
Predictions Overview
What's Changed in the New Predictions UI
View and Manage Predictions
Future Behavior Predictions Overview
Create Future Behavior Prediction
Manage Future Behavior Predictions
Create an Audience with Future Behavior Predictions
Identity Dashboard
Identity Logs
Create an Input
Start capturing data
Connect an Event Output
Create an Audience
Connect an Audience Output
Transform and Enhance Your Data
Usage and Billing Report
The new mParticle Experience
The Overview Map
Observability Overview
Observability User Guide
Observability Troubleshooting Examples
Observability Span Glossary
Audit Logs
Key Management
Platform Configuration
Event Match Quality Dashboard
Event Forwarding
Notifications
Trends
System Alerts
Introduction
Data Retention
Data Catalog
Connections
Activity
Data Plans
Live Stream
Filters
Rules
Blocked Data Backfill Guide
Tiered Events
mParticle Users and Roles
Analytics Free Trial
Troubleshooting mParticle
Usage metering for value-based pricing (VBP)
Audiences Overview
Create an Audience
Connect an Audience
Manage Audiences
Audience Sharing
Audience Expansion (Early Access)
Match Boost
FAQ
Inclusive & Exclusive Audiences Overview
Using Logic Blocks in Audiences
Combining Inclusive and Exclusive Audiences
Inclusive & Exclusive Audiences FAQ
Standard Audiences (Legacy)
Predictive Audiences Overview
Using Predictive Audiences
New vs. Classic Experience Comparison
IDSync Overview
Use Cases for IDSync
Components of IDSync
Store and Organize User Data
Identify Users
Default IDSync Configuration
Profile Conversion Strategy
Profile Link Strategy
Profile Isolation Strategy
Best Match Strategy
Aliasing
Introduction
Core Analytics (Beta)
Sync and Activate Analytics User Segments in mParticle
User Segment Activation
Welcome Page Announcements
Project Settings
Roles and Teammates
Organization Settings
Global Project Filters
Portfolio Analytics
Analytics Data Manager Overview
Events
Event Properties
User Properties
Revenue Mapping
Export Data
UTM Guide
Analyses Introduction
Getting Started
Visualization Options
For Clauses
Date Range and Time Settings
Calculator
Numerical Settings
Assisted Analysis
Properties Explorer
Frequency in Segmentation
Trends in Segmentation
Did [not] Perform Clauses
Cumulative vs. Non-Cumulative Analysis in Segmentation
Total Count of vs. Users Who Performed
Save Your Segmentation Analysis
Export Results in Segmentation
Explore Users from Segmentation
Getting Started with Funnels
Group By Settings
Conversion Window
Tracking Properties
Date Range and Time Settings
Visualization Options
Interpreting a Funnel Analysis
Group By
Filters
Conversion over Time
Conversion Order
Trends
Funnel Direction
Multi-path Funnels
Analyze as Cohort from Funnel
Save a Funnel Analysis
Explore Users from a Funnel
Export Results from a Funnel
Saved Analyses
Manage Analyses in Dashboards
Data Dictionary
Query Builder Overview
Modify Filters With And/Or Clauses
Query-time Sampling
Query Notes
Filter Where Clauses
Event vs. User Properties
Group By Clauses
Annotations
Cross-tool Compatibility
Apply All for Filter Where Clauses
Date Range and Time Settings Overview
User Attributes at Event Time
Understanding the Screen View Event
User Aliasing
Dashboards––Getting Started
Manage Dashboards
Dashboard Filters
Organize Dashboards
Scheduled Reports
Favorites
Time and Interval Settings in Dashboards
Query Notes in Dashboards
The Demo Environment
Keyboard Shortcuts
User Segments
Data Privacy Controls
Data Subject Requests
Default Service Limits
Feeds
Cross-Account Audience Sharing
Import Data with CSV Files
CSV File Reference
Glossary
Video Index
Single Sign-On (SSO)
Setup Examples
Introduction
Introduction
Introduction
Rudderstack
Google Tag Manager
Segment
Advanced Data Warehouse Settings
AWS Kinesis (Snowplow)
AWS Redshift (Define Your Own Schema)
AWS S3 Integration (Define Your Own Schema)
AWS S3 (Snowplow Schema)
BigQuery (Snowplow Schema)
BigQuery Firebase Schema
BigQuery (Define Your Own Schema)
GCP BigQuery Export
Snowflake (Snowplow Schema)
Snowplow Schema Overview
Snowflake (Define Your Own Schema)
Aliasing
Event
Audience
Audience
Event
Feed
Audience
Cookie Sync
Server-to-Server Events
Platform SDK Events
Audience
Audience
Event
Feed
Event
Audience
Event
Audience
Event
Data Warehouse
Event
Event
Event
Event
Audience
Feed
Event
Event
Event
Event
Event
Audience
Event
Event
Feed
Event
Event
Audience
Event
Feed
Event
Event
Custom Feed
Data Warehouse
Event
Event
Audience
Audience
Audience
Event
Audience
Event
Event
Event
Event
Audience
Event
Event
Audience
Event
Event
Audience
Data Warehouse
Event
Audience
Cookie Sync
Event
Event
Event
Event
Event
Feed
Feed
Event
Event
Kit
Event
Audience
Event
Event
Audience
Event
Event
Feed
Event
Audience
Event
Audience
Audience
Event
Event
Audience
Audience
Audience
Microsoft Ads Audience Integration
Audience
Event
Event
Event
Event
Event
Event
Feed
Event
Event
Event
Event
Feed
Audience
Event
Event
Event
Event
Event
Event
Event
Feed
Event
Event
Custom Pixel
Feed
Event
Event
Event
Event
Audience
Event
Event
Data Warehouse
Audience
Event
Event
Audience
Audience
Event
Feed
Loyalty Feed
Audience
Audience
Event
Audience
Audience
Audience
Event
Cookie Sync
Feed
Audience
Event
Audience
Event
Audience
Event
Event
Event
Event
Audience
Cookie Sync
Feed
Audience
Audience
Cookie Sync
Event
Version 9 of the Apple SDK contains breaking changes from version 8.x, including removal of the AppDelegateProxy (you must now forward push, URL, and user-activity events to the SDK), removal of deprecated UIApplicationDelegate URL/activity methods in favor of the UIScene lifecycle, removal of location support and the NoLocation variant, removal of support for iOS app extension targets, removal of Carthage distribution (use Swift Package Manager or CocoaPods instead), direct routing to regional endpoints by default, and API changes for MPRokt and listener callbacks. The SDK’s minimum deployment is iOS 15 and tvOS 15. This guide covers migration from versions < 9.0.0. For migration from SDK 7.x to 8.x, see the mParticle Apple SDK migration guide v8 on GitHub.
Swift: Use import mParticle_Apple_SDK for all public SDK APIs, including Rokt types (such as RoktEvent) that the kit re-exports. You do not need a separate import RoktContracts in Swift for typical mParticle + Rokt usage.
Objective-C: Prefer #import <mParticle_Apple_SDK.h>, or @import mParticle_Apple_SDK; when modules are enabled. If a source file references Rokt SDK types directly (for example in blocks that take RoktEvent *), add @import RoktContracts; (or the equivalent for your build) in that file only.
Swift Package Manager: Depend on the single product mParticle-Apple-SDK; the old mParticle-Apple-SDK-NoLocation product name is no longer used (see Removed Location Support).
The AppDelegateProxy feature has been removed from the SDK. The SDK no longer automatically intercepts UIApplicationDelegate messages for push notifications, URL opening, or user activity. You must explicitly forward these events to the SDK from your app delegate or scene delegate.
proxyAppDelegate property has been removed from MParticleOptionsproxiedAppDelegate property has been removed from MParticleMPAppDelegateProxy and MPSurrogateAppDelegate classes have been removedIf you were using proxyAppDelegate = YES (the default), you must now forward app delegate events to the SDK. See Push Notifications and Configuration – Forwarding app lifecycle events for the required code.
proxyAppDelegate from your MParticleOptions configurationproxiedAppDelegate property checksSupport for migrating from SDK versions prior to 8.27.0 (internal database version < 30) has been removed. Only migration from the immediately preceding database version (v30 → v31) is supported.
This only affects apps that are upgrading directly from mParticle SDK versions before 8.27.0 (released August 2024) and that have pending events not yet uploaded to mParticle.
The MPListenerController class has been removed. The SDK no longer invokes any listener callbacks.
The mParticle Apple SDK 9.x does not support iOS app extension targets. If you need the SDK in an extension, you can continue using 8.x. If you require continued app extension support beyond that path, contact your mParticle representative.
Carthage is no longer supported for the mParticle Apple SDK as of 9.0.0. Integrate the SDK with Swift Package Manager or CocoaPods, or build manually from source. If you relied on Carthage with SDK 8.x, migrate your dependency to SPM or CocoaPods before upgrading.
API requests now route directly to regional endpoints based on your API key prefix.
Before (8.x):
nativesdks.mparticle.comtracking-nativesdks.mparticle.comidentity.mparticle.comtracking-identity.mparticle.comconfig2.mparticle.comAfter (9.x):
nativesdks.[pod].mparticle.comtracking-nativesdks.[pod].mparticle.comidentity.[pod].mparticle.comtracking-identity.[pod].mparticle.comconfig2.mparticle.com (unchanged; used for SDK configuration)Examples by API key format:
| API Key Format | Events Endpoint | Events Tracking Endpoint | Identity Endpoint | Identity Tracking Endpoint |
|---|---|---|---|---|
xxxxx (legacy, no prefix) |
nativesdks.us1.mparticle.com |
tracking-nativesdks.us1.mparticle.com |
identity.us1.mparticle.com |
tracking-identity.us1.mparticle.com |
us1-xxxxx |
nativesdks.us1.mparticle.com |
tracking-nativesdks.us1.mparticle.com |
identity.us1.mparticle.com |
tracking-identity.us1.mparticle.com |
us2-xxxxx |
nativesdks.us2.mparticle.com |
tracking-nativesdks.us2.mparticle.com |
identity.us2.mparticle.com |
tracking-identity.us2.mparticle.com |
eu1-xxxxx |
nativesdks.eu1.mparticle.com |
tracking-nativesdks.eu1.mparticle.com |
identity.eu1.mparticle.com |
tracking-identity.eu1.mparticle.com |
au1-xxxxx |
nativesdks.au1.mparticle.com |
tracking-nativesdks.au1.mparticle.com |
identity.au1.mparticle.com |
tracking-identity.au1.mparticle.com |
If your app has strict App Transport Security (ATS) settings, you may need to add NSIncludesSubdomains set to YES for the mparticle.com domain in your Info.plist to allow connections to regional subdomains.
Apple has deprecated several UIApplicationDelegate protocol methods in favor of the UIScene lifecycle. The mParticle SDK has removed its wrapper methods for these deprecated delegate methods. Use the UIScene-based APIs in your SceneDelegate instead. The SDK’s minimum deployment is iOS 15 and tvOS 15, so the UIScene lifecycle is always available.
The following methods have been removed from the MParticle class:
openURL:sourceApplication:annotation:openURL:options:continueUserActivity:restorationHandler:Use the UIScene lifecycle in your SceneDelegate and call the new SDK methods.
URL handling — use handleURLContext: in your SceneDelegate:
// In SceneDelegate
- (void)scene:(UIScene *)scene openURLContexts:(NSSet<UIOpenURLContext *> *)URLContexts {
for (UIOpenURLContext *urlContext in URLContexts) {
[[MParticle sharedInstance] handleURLContext:urlContext];
}
}// In SceneDelegate
func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
for urlContext in URLContexts {
MParticle.sharedInstance().handleURLContext(urlContext)
}
}User activity (universal links, Handoff) — use handleUserActivity: in your SceneDelegate:
// In SceneDelegate
- (void)scene:(UIScene *)scene continueUserActivity:(NSUserActivity *)userActivity {
[[MParticle sharedInstance] handleUserActivity:userActivity];
}// In SceneDelegate
func scene(_ scene: UIScene, continue userActivity: NSUserActivity) {
MParticle.sharedInstance().handleUserActivity(userActivity)
}UIApplicationDelegate lifecycle without scenes, consider migrating to the UIScene lifecycle as Apple continues to deprecate the older approachIn version 9.0.0, location support has been removed from the SDK. The SDK now provides a single target without location functionality.
mParticle-Apple-SDK); the -NoLocation product name has been removedIf you were using a target with Location support:
Switch your project to the standard target (no Location suffix) and remove any location-related dependencies, imports, or build scripts.
If you were using the NoLocation variant (e.g. mParticle-Apple-SDK-NoLocation):
NoLocation import/product with the standard name: mParticle-Apple-SDKPackage.swift or Podfile to use the standard target/product nameSwift Package Manager example:
// Before (NoLocation variant)
.target(
name: "MyTarget",
dependencies: [
.product(name: "mParticle-Apple-SDK-NoLocation", package: "mParticle-Apple-SDK")
]
)
// After (standard target)
.target(
name: "MyTarget",
dependencies: [
.product(name: "mParticle-Apple-SDK", package: "mParticle-Apple-SDK")
]
)The MPRokt interface has been updated to align with the Rokt SDK 5.0.x API: multiple callback parameters are replaced with a unified event-based callback, and some parameter names have changed.
MPRoktEventCallback has been removed and replaced with MPRoktEventselectPlacements: — the callbacks: parameter has been replaced with onEvent:purchaseFinalized: — the placementId: parameter has been renamed to identifier:globalEvents: method for subscribing to global Rokt eventsMPRoktEmbeddedSizeChanged event class| Old Callback | New Event Class |
|---|---|
onLoad |
MPRoktPlacementReady |
onUnLoad |
MPRoktPlacementClosed |
onShouldShowLoadingIndicator |
MPRoktShowLoadingIndicator |
onShouldHideLoadingIndicator |
MPRoktHideLoadingIndicator |
onEmbeddedSizeChange |
MPRoktEmbeddedSizeChanged |
Use the onEvent callback and type-check the event to handle specific cases. Remove any references to MPRoktEventCallback. For full code examples, see the mParticle Apple SDK MIGRATING.md on GitHub.
import mParticle_Apple_SDK; Objective-C #import <mParticle_Apple_SDK.h> (see Imports)proxyAppDelegate and any proxiedAppDelegate referencesUIApplicationDelegate URL/activity handling with SceneDelegate and handleURLContext: / handleUserActivity:mParticle-Apple-SDK target/productMPListenerController and listener callbacksMPRoktEventCallback to the onEvent: pattern and update purchaseFinalized parameter namemparticle.com subdomains if using strict ATSWas this page helpful?