Skip to content

Commit b9b8a58

Browse files
committed
Added check to display test IAMs when IAMs are paused
1 parent 30e2622 commit b9b8a58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iOS_SDK/OneSignalSDK/Source/OSMessagingController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ - (void)presentInAppPreviewMessage:(OSInAppMessageInternal *)message {
316316

317317
- (void)displayMessage:(OSInAppMessageInternal *)message {
318318
// Check if the app disabled IAMs for this device before showing an IAM
319-
if (_isInAppMessagingPaused) {
319+
if (_isInAppMessagingPaused && !message.isPreview) {
320320
[OneSignal onesignal_Log:ONE_S_LL_VERBOSE message:@"In app messages will not show while paused"];
321321
return;
322322
}

0 commit comments

Comments
 (0)