Skip to content

Commit 64fd7b5

Browse files
authored
chore: Log when OneSignalInAppMessages module is missing (#1690)
1 parent a7edf73 commit 64fd7b5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

iOS_SDK/OneSignalSDK/Source/OneSignal.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,8 @@ + (void)startInAppMessages {
400400
let oneSignalInAppMessages = NSClassFromString(ONE_SIGNAL_IN_APP_MESSAGES_CLASS_NAME);
401401
if (oneSignalInAppMessages != nil && [oneSignalInAppMessages respondsToSelector:@selector(start)]) {
402402
[oneSignalInAppMessages performSelector:@selector(start)];
403+
} else {
404+
[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."];
403405
}
404406
}
405407

0 commit comments

Comments
 (0)