mParticle Native iOS Integration
Overview
You can integrate mParticle iOS SDK with CleverTap to control the flow of information from the app SDK. You can send the following information to the CleverTap dashboard:
- Push User Profiles
- Push Events
- Push Notifications
Prerequisites
The following are the prerequisites for performing this integration:
- A CleverTap account
- An mParticle account
- A functional iOS app
Integration
For CleverTap mParticle iOS integration, the following are the major steps:
- Add Event Output.
- Connect the Input Feed and Output Event on the mParticle dashboard.
- Install SDK in the Native application.
- Initialize the mParticle client.
Add Event Output
To add an event output:
- Navigate to Setup > Output from the mParticle dashboard.
- Click Add Event Output_ and select _CleverTap from the dropdown list.
After selecting, CleverTap Default Group is added under the Events tab of the Outputs page.
- Click the icon to add event configuration. The Output: Event Configuration popup opens.
- Enter the following details and click Save to save the details:
Field | Description |
---|---|
Configuration Name | Enter the name to identify your configuration uniquely. |
Use same settings for Development & Production | Select this option if you want to apply the same configuration settings for your production and development projects. ~ OR ~ Select PROD or DEV to apply these configuration settings to the respective project. |
Account ID, Account Passcode, and Account Token | Enter these details to authenticate your CleverTap account. You can obtain these details by navigating to the Settings > Project page from the CleverTap dashboard. |
Region | Enter the region of your CleverTap account. |
The Output Configuration Saved message is displayed at the top of the Output page.
Connect Input Feed and Output Event on mParticle Dashboard
To connect input feed and output event on the mParticle dashboard:
- Navigate to the Connections > Connect page from the mParticle dashboard.
- Select iOS from the Available Inputs.
- Click Connect Output. The Connect Output popup opens.
- Select CleverTap and then select the Configuration Name that you want to connect.
- Toggle the Connection Status to forward data to the CleverTap dashboard.
- Select Customer ID from the User ID dropdown list.
- (Optional) Select the Min Platform Version.
- Click Add Connection and click Done.
- (Optional) Set up the forwarding rule for your output. This allows you to control the data you want to forward to the CleverTap dashboard.
- (Optional) Enter the percentage of the user base for which you want to event data to help control the cost.
- Click Save.
Install SDK in Native Application
To install iOS SDK within the application, add the following code to your profile:
pod 'mParticle-CleverTap'
Initialize mParticle Client
To initialize the mParticle client, refer to Initialize SDK under mParticle documentation.
Push User Information
After installing an app on a device, your user is assigned an anonymous profile. The first time when the application identifies the user on the device, the anonymous history on the device is associated with the newly identified user. To learn more about how user information is pushed to the mParticle dashboard, refer to Track Users under mParticle documentation.
Push Events
To learn how to push event data whenever you want to capture any user action in your application, refer to Track Events under mParticle documentation.
Integrate Push Notification in iOS
For more information about integrating Push Notification in iOS, refer to iOS Push Notifications.
Integrate In-App in iOS
For more information about integrating In-App in iOS, refer to iOS In-App Notification.
Integrate App Inbox in iOS
For more information about integrating App Inbox in iOS, refer to iOS App Inbox.
Advanced Features
To add advanced features to your iOS app, refer to iOS Advanced Features.
Updated about 1 year ago