This repository contains the MoEngage integration for the mParticle Apple SDK.
-
Add the kit dependency to your app's Podfile, or SPM:
pod 'mParticle-MoEngage', '~> 1.0.0'
OR
Open your project and navigate to the project's settings. Select the tab named Swift Packages and click on the add button (+) at the bottom left. then, enter the URL of MoEngage Kit GitHub repository - https://github.com/moengage/mparticle-apple-integration-moengage and click Next.
-
Disable MoEngageSDK method swizzling by setting
MoEngageAppDelegateProxyEnabled
asfalse
/NO
in app'sInfo.plist
. -
Configure MoEngage SDK
let sdkConfig = MoEngageSDKConfig(appId: "YOUR APP ID", dataCenter: YOUR_DATA_CENTER) MoEngageConfigurator.configureInstance(sdkConfig: sdkConfig)
-
Follow the mParticle iOS SDK quick-start, then rebuild and launch your app, and verify that you see
"Included kits: { MoEngageSDK }"
in your Xcode console(This requires your mParticle log level to be at least Debug)
-
Reference mParticle's integration docs below to enable the integration.