Closed
Description
[REQUIRED] Step 1: Describe your environment
- Xcode version: 12.4
- Firebase SDK version: 7.3.0
- Installation method:
Carthage
- Firebase Component: InAppMessaging
[REQUIRED] Step 2: Describe the problem
ImageOnly message shows incorrect message type. It may be a bug of parsing passing data.
Steps to reproduce:
- add new message as
Image Only
message at Firebase Console - send test message
- open app with following code
Relevant Code:
classSample:InAppMessagingDisplay{func displayMessage(_ messageForDisplay:InAppMessagingDisplayMessage, displayDelegate:InAppMessagingDisplayDelegate){switch messageForDisplay.type {case.banner,.card:breakcase.modal:print("When set `imageOnly` message at firebase console, message will be received with `modal` type")case.imageOnly:print("This line will be never called.")@unknowndefault:break}}} // at AppDelegate InAppMessaging.inAppMessaging().messageDisplayComponent =Sample()