Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
oth-libs opened this issue Apr 1, 2020 · 4 comments · Fixed by #1550
Closed

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

oth-libs opened this issue Apr 1, 2020 · 4 comments · Fixed by #1550

Comments

@oth-libs
Copy link

oth-libs commented Apr 1, 2020

[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")
@google-oss-bot
Copy link
Contributor

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

@JasonAHeron
Copy link
Contributor

Hey @oth-libs is your campaign set to trigger on this event in the firebase console? by default campaigns trigger on app foreground which seems to be what you're experiencing.

@Viraj7009
Copy link

Hi @JasonAHeron I think what @oth-libs is facing is similar to this issue #1092. I commented there to see if there's any solution for this as I didn't find any yet. Any help would be appreciated. Thanks!

@JasonAHeron
Copy link
Contributor

This will be fixed in our next release 19.0.7

@firebase firebase locked and limited conversation to collaborators Jun 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants