firebase / firebase-android-sdk

Firebase Android SDK
https://firebase.google.com
Apache License 2.0
2.26k stars 573 forks source link

Provide a more straightforward method to implement custom InAppMessage view #2490

Open mszerling-ynd opened 3 years ago

mszerling-ynd commented 3 years ago

What feature would you like to see?

Would be great to have a possibility to implement only a custom InAppMessage to View mapper without a need to build all the machinery required by FirebaseInAppMessagingDisplay. Something similar to RemoteViews

How would you use it?

there would be just a callback needed to be implemented, something like:

fun getView(inAppMessage: InAppMessage, someContext: ...): View

which would return a view displayed by the firebase SDK in a piece of UI managed by it.

google-oss-bot commented 3 years ago

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.