From b8a883dc18157783567ff8c6014b9e0f276060b3 Mon Sep 17 00:00:00 2001 From: Nan Date: Mon, 20 Jul 2026 16:28:34 -0700 Subject: [PATCH] chore: Log when OneSignalInAppMessages module is missing Surfaces a DEBUG message during startInAppMessages so apps that omit the optional IAM module get a clear signal instead of a silent no-op. --- iOS_SDK/OneSignalSDK/Source/OneSignal.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iOS_SDK/OneSignalSDK/Source/OneSignal.m b/iOS_SDK/OneSignalSDK/Source/OneSignal.m index 938c4914c..7a128f170 100755 --- a/iOS_SDK/OneSignalSDK/Source/OneSignal.m +++ b/iOS_SDK/OneSignalSDK/Source/OneSignal.m @@ -400,6 +400,8 @@ + (void)startInAppMessages { let oneSignalInAppMessages = NSClassFromString(ONE_SIGNAL_IN_APP_MESSAGES_CLASS_NAME); if (oneSignalInAppMessages != nil && [oneSignalInAppMessages respondsToSelector:@selector(start)]) { [oneSignalInAppMessages performSelector:@selector(start)]; + } else { + [OneSignalLog onesignalLog:ONE_S_LL_DEBUG message:@"OneSignalInAppMessages not found. In-App Messages will be unavailable. Add the OneSignalInAppMessages module if you intend to use them."]; } }