Skip to content

Commit

Permalink
Pull request #113: sloncarevic/MM-6923-fix-forceDepersonalization-param
Browse files Browse the repository at this point in the history
Merge in MML/infobip-mobile-messaging-cordova-plugin from sloncarevic/MM-6923-fix-forceDepersonalization-param to master

Squashed commit of the following:

commit cd3551fdd9244420d8e202e82ddce502a3a87ffa
Author: sloncarevic <[email protected]>
Date:   Wed Nov 13 16:47:18 2024 +0100

    fix forceDepersonalization
  • Loading branch information
Saša Lončarević authored and Saša Lončarević committed Nov 13, 2024
1 parent 6587663 commit 64f7740
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ios/MobileMessagingCordova.swift
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,8 @@ fileprivate class MobileMessagingEventsManager {
}
let uaDict = context["userAttributes"] as? [String: Any]
let ua = uaDict == nil ? nil : MMUserAttributes(dictRepresentation: uaDict!)
MobileMessaging.personalize(withUserIdentity: ui, userAttributes: ua) { (error) in
let forceDepersonalize = context["forceDepersonalize"] as? Bool ?? false
MobileMessaging.personalize(forceDepersonalize: forceDepersonalize, userIdentity: ui, userAttributes: ua) { (error) in
if let error = error {
self.commandDelegate?.send(error: error, for: command)
} else {
Expand Down

0 comments on commit 64f7740

Please sign in to comment.