Prerequisites
SDK version
You must update your Native iOS SDK version to 10.01.0 or higher.
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Report impression and click events for experiences from the MoEngage Personalize API in your iOS app.
MoEngageSDKAppPersonalization.sharedInstance.experienceShown(experienceAttribute: experienceContext)
[[MoEngageSDKAppPersonalization sharedInstance] experienceShownWithExperienceAttribute:experienceContext];
MoEngageSDKAppPersonalization.sharedInstance.experienceShown(experienceAttributes: [experienceContext1, experienceContext2, experienceContext3])
[[MoEngageSDKAppPersonalization sharedInstance] experienceShownWithExperienceAttributes:@[experienceContext1, experienceContext2, experienceContext3]];
experienceClicked(), the experienceAttribute dictionary must contain both cid and experience keys. If any key is missing, or the call is made against an un-initialized Workspace ID, the SDK throws a fatal exception and crashes the app in DEBUG builds. In Release and TestFlight builds, the click event is dropped silently and logged.DEBUG validations crash your app while you upgrade, call MoEngageSDKCore.sharedInstance.disableIntegrationValidator() before initializing the SDK to opt out temporarily. Remove the call once the issues are fixed.MoEngageSDKAppPersonalization.sharedInstance.experienceClicked(experienceAttribute: experienceContext)
[[MoEngageSDKAppPersonalization sharedInstance] experienceClickedWithExperienceAttribute:experienceContext];
MoEngageSDKAppPersonalization.sharedInstance.experienceClicked(experienceAttributes: [experienceContext1, experienceContext2, experienceContext3])
[[MoEngageSDKAppPersonalization sharedInstance] experienceClickedWithExperienceAttributes:@[experienceContext1, experienceContext2, experienceContext3]];
Suggestions