Skip to content

Commit

Permalink
Always remove the window when an IAM is dismissed
Browse files Browse the repository at this point in the history
Cherry pick #1276
  • Loading branch information
emawby authored and nan-li committed Oct 30, 2023
1 parent 2a3e32f commit 8c62aaa
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ - (void)presentInAppPreviewMessage:(OSInAppMessageInternal *)message {
- (void)displayMessage:(OSInAppMessageInternal *)message {
// Check if the app disabled IAMs for this device before showing an IAM
if (_isInAppMessagingPaused && !message.isPreview) {
[self cleanUpInAppWindow];
[OneSignalLog onesignalLog:ONE_S_LL_VERBOSE message:@"In app messages will not show while paused"];
return;
}
Expand Down

0 comments on commit 8c62aaa

Please sign in to comment.