Skip to content

InAppMessagingDisplayMessage shows incorrect type for imageOnly  #8081

Closed
@fumito-ito

Description

@fumito-ito

[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:

  1. add new message as Image Only message at Firebase Console
  2. send test message
  3. 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()

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    close