Skip to content

How to configure In-App Messaging to show the message after splash screen #1410

@oth-libs

Description

@oth-libs

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: 3.6.1
  • Firebase Component: In-App Messaging
  • Component version: firebase-inappmessaging-display-ktx:19.0.4

[REQUIRED] Step 3: Describe the problem

I can successfully receive a message on my splash activity, but in reality I need to show in a later activity, so in firebase in the Scheduling section I removed all the events and added a new one "login_activity_opened", which I trigger when the login activity is opened.
But the event is always shows when I open the app, in the splash activity screen.

Steps to reproduce:

as shown in the description

Relevant Code:

How I trigger the event:

FirebaseAnalytics.getInstance(context).logEvent("login_activity_opened", trackEvent.getEventValues()?.toBundle())
FirebaseInAppMessaging.getInstance().triggerEvent("login_activity_opened")

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions