Skip to content

[🐛] In-app-messaging pop up is not triggered and not showing. #8413

Open
@NikolayChankov90

Description

@NikolayChankov90

I am with
"react-native": "0.76.6"
"@react-native-firebase/analytics": "^21.12.0",
"@react-native-firebase/app": "^21.12.0",
"@react-native-firebase/in-app-messaging": "^21.12.0",
"@react-native-firebase/messaging": "21.6.1",

i have installed the in-app-messaging library and configured:
Firebase.json

"messaging_android_notification_channel_id": "default",
"in_app_messaging_auto_collection_enabled": true

app.ts

  inAppMessaging().setMessagesDisplaySuppressed(false);
  inAppMessaging().setAutomaticDataCollectionEnabled(true);
  inAppMessaging().triggerEvent('on_login');
  inAppMessaging().triggerEvent('on_foreground');
  firebase.analytics().logEvent('event_name');

android/build.gradle
classpath 'com.google.gms:google-services:4.4.1'
android/app/build.gradle
apply plugin: 'com.google.gms.google-services'

Firebase message pop up is configured for my stg app , all registered , i have used firebase before in the app for push notifications .

The in app message configs are to trigger on_foreground

Image

What else do i have to do ? Or what have i done wrong ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions