Skip to content

Commit

Permalink
Pausing IAMs now dismisses any currently showing IAM
Browse files Browse the repository at this point in the history
Tested that queued IAMs don't show and that lifecycle callback listeners fire.
  • Loading branch information
emawby committed Sep 11, 2024
1 parent a197d9d commit e5af13f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,11 @@ - (void)setInAppMessagingPaused:(BOOL)pause {
_isInAppMessagingPaused = pause;

// If IAM are not paused, try to evaluate and show IAMs
if (!pause)
if (!pause) {
[self evaluateMessages];
} else if (self.isInAppMessageShowing) {
[self.viewController dismissCurrentInAppMessage];
}
}

+ (BOOL)doesDeviceSupportIAM {
Expand Down

0 comments on commit e5af13f

Please sign in to comment.