Skip to content

Commit b389b8b

Browse files
MatthiasB94paulb777
authored andcommitted
Set suppressMessageDisplay on displayExecutor (#3922)
1 parent 5356a25 commit b389b8b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Firebase/InAppMessaging/Runtime/FIRIAMRuntimeManager.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,10 +347,12 @@ - (void)internalStartRuntimeWithSDKSettings:(FIRIAMSDKSettings *)settings {
347347
activityLogger:self.activityLogger
348348
analyticsEventLogger:analyticsEventLogger];
349349

350-
// Setting the display component. It's needed in case headless SDK is initialized after
351-
// the display component is already set on FIRInAppMessaging.
350+
// Setting the message display component and suppression. It's needed in case
351+
// headless SDK is initialized after the these properties are already set on FIRInAppMessaging.
352352
self.displayExecutor.messageDisplayComponent =
353353
FIRInAppMessaging.inAppMessaging.messageDisplayComponent;
354+
self.displayExecutor.suppressMessageDisplay =
355+
FIRInAppMessaging.inAppMessaging.messageDisplaySuppressed;
354356

355357
// Both display flows are created on startup. But they would only be turned on (started) based on
356358
// the sdk mode for the current instance

0 commit comments

Comments
 (0)