firebase-android-sdk icon indicating copy to clipboard operation
firebase-android-sdk copied to clipboard

Possibility to programmatically dismiss an InApp Message

Open MarceloMaia2 opened this issue 3 years ago • 8 comments

What feature would you like to see?

The possibility to programmatically dismiss an InApp Message

How would you use it?

FirebaseInAppMessaging.getInstance().dismissAll();

MarceloMaia2 avatar Feb 17 '22 10:02 MarceloMaia2

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

google-oss-bot avatar Feb 17 '22 10:02 google-oss-bot

Thanks for the request, @MarceloMaia2. Our engineers will take a look at this once they have the time.

argzdev avatar Feb 17 '22 10:02 argzdev

Thanks for the request, @MarceloMaia2. Our engineers will take a look at this once they have the time.

Is there currently another way to programmatically dismiss an InApp Message? @argzdev

MarceloMaia2 avatar Feb 17 '22 11:02 MarceloMaia2

@MarceloMaia2 I'm wondering in which cases would you need to programmatically dismiss it? Considering that an in-app-message usually interrupts the user and they have no option but to either click or dismiss it.

thatfiredev avatar Mar 03 '22 22:03 thatfiredev

@MarceloMaia2 I'm wondering in which cases would you need to programmatically dismiss it? Considering that an in-app-message usually interrupts the user and they have no option but to either click or dismiss it.

@thatfiredev When we are dealing with sessions. An in-app-message interrupts the user and for example, he can block the smartphone and when he unblocks (2/3 minutes after), the application will send him to the login page, due to expiration session and the in-app-message is still going to be active.

MarceloMaia2 avatar Mar 04 '22 09:03 MarceloMaia2

@MarceloMaia2 Ah, I see. Thanks for clarifying.

thatfiredev avatar Mar 09 '22 16:03 thatfiredev

Hello @thatfiredev , there are any relevant updates for this issue? Thanks in advance.

MarceloMaia2 avatar Jun 08 '22 09:06 MarceloMaia2

@MarceloMaia2 Thanks for the gentle reminder. I've filed this internally and I'm waiting for one of our engineers to take a look at it. We'll update this thread when a response comes in.

thatfiredev avatar Jun 08 '22 15:06 thatfiredev

Hi @MarceloMaia2, sorry for the late response!

While there's currently no way to dismiss an InAppMessage programmatically. You could modify this by customizing the look and behavior of your message, though it may require a lot of work but this will definitely allow you to achieve what you need in your use case.

Alternatively, you can consider temporarily disabling in-app messages programmatically. It might help with this use case while waiting for an update for this feature request.

argzdev avatar Oct 18 '22 18:10 argzdev