diff --git a/iOS_SDK/OneSignalSDK/OneSignalInAppMessages/Controller/OSMessagingController.m b/iOS_SDK/OneSignalSDK/OneSignalInAppMessages/Controller/OSMessagingController.m index 47bc312ff..d8418d5ed 100644 --- a/iOS_SDK/OneSignalSDK/OneSignalInAppMessages/Controller/OSMessagingController.m +++ b/iOS_SDK/OneSignalSDK/OneSignalInAppMessages/Controller/OSMessagingController.m @@ -177,8 +177,13 @@ - (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) { + dispatch_async(dispatch_get_main_queue(), ^{ + [self.viewController dismissCurrentInAppMessage]; + }); + } } + (BOOL)doesDeviceSupportIAM {