Open MarceloMaia2 opened 2 years ago
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
Thanks for the request, @MarceloMaia2. Our engineers will take a look at this once they have the time.
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 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.
@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 Ah, I see. Thanks for clarifying.
Hello @thatfiredev , there are any relevant updates for this issue? Thanks in advance.
@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.
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.
What feature would you like to see?
The possibility to programmatically dismiss an InApp Message
How would you use it?
FirebaseInAppMessaging.getInstance().dismissAll();