From a639b4afe296b33645f236db920de36f83e82fce Mon Sep 17 00:00:00 2001 From: emawby Date: Wed, 17 Apr 2024 12:35:22 -0700 Subject: [PATCH] fixes bug where IAM window is not cleaned up if a message is inactive This bug results in a "frozen" app --- .../OneSignalInAppMessages/Controller/OSMessagingController.m | 1 + 1 file changed, 1 insertion(+) diff --git a/iOS_SDK/OneSignalSDK/OneSignalInAppMessages/Controller/OSMessagingController.m b/iOS_SDK/OneSignalSDK/OneSignalInAppMessages/Controller/OSMessagingController.m index 579806d54..17fba3d46 100644 --- a/iOS_SDK/OneSignalSDK/OneSignalInAppMessages/Controller/OSMessagingController.m +++ b/iOS_SDK/OneSignalSDK/OneSignalInAppMessages/Controller/OSMessagingController.m @@ -901,6 +901,7 @@ - (void)messageViewDidDisplayPage:(OSInAppMessageInternal *)message withPageId:( - (void)messageIsNotActive:(OSInAppMessageInternal *)message { [self deleteInactiveMessage:message]; + [self cleanUpInAppWindow]; } - (void)messageWillDisplay:(nonnull OSInAppMessageInternal *)message {