Skip to content

Commit

Permalink
Merge pull request #1524 from OneSignal/fix/iam_duration_since_last
Browse files Browse the repository at this point in the history
[Fix] Don't evaluate in app messages when paused
  • Loading branch information
nan-li authored Dec 16, 2024
2 parents d1a45fd + 9d099bc commit f08811e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,10 @@ - (void)messageViewImpressionRequest:(OSInAppMessageInternal *)message {
Checks to see if any messages should be shown now
*/
- (void)evaluateMessages {
if (_isInAppMessagingPaused) {
[OneSignalLog onesignalLog:ONE_S_LL_VERBOSE message:@"Not evaluating in app messages while paused"];
return;
}
[OneSignalLog onesignalLog:ONE_S_LL_VERBOSE message:@"Evaluating in app messages"];
for (OSInAppMessageInternal *message in self.messages) {
if ([self.triggerController messageMatchesTriggers:message]) {
Expand Down

0 comments on commit f08811e

Please sign in to comment.