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

[🐛] Realtime database listener .on("value") refresh app bundle on Android #8237

Open
1 of 10 tasks
ssobcuk opened this issue Jan 17, 2025 · 3 comments
Open
1 of 10 tasks
Labels
blocked: customer-response plugin: database Firebase Realtime Database type: bug New bug report

Comments

@ssobcuk
Copy link

ssobcuk commented Jan 17, 2025

Issue

First database update after app opening update app bundle, I see
BUNDLE ./index.js
in the console. After it subscription on changes in database doesnt work. On the IOS the same code works perfect, but I have a problem on Android.

"@react-native-community/push-notification-ios": "^1.11.0",
"@react-native-firebase/app": "^21.4.0",
"@react-native-firebase/auth": "^21.4.0",
"@react-native-firebase/crashlytics": "^21.4.0",
"@react-native-firebase/database": "21.6.2",
"@react-native-firebase/messaging": "^21.4.0",
"react-native": "0.76.5",

Describe your issue here


Project Files

Javascript

Click To Expand

package.json:

# N/A

firebase.json for react-native-firebase v6:

# N/A

iOS

Click To Expand

ios/Podfile:

  • I'm not using Pods
  • I'm using Pods and my Podfile looks like:
# N/A

AppDelegate.m:

// N/A


Android

Click To Expand

Have you converted to AndroidX?

  • my application is an AndroidX application?
  • I am using android/gradle.settings jetifier=true for Android compatibility?
  • I am using the NPM package jetifier for react-native compatibility?

android/build.gradle:

// N/A

android/app/build.gradle:

// N/A

android/settings.gradle:

// N/A

MainApplication.java:

// N/A

AndroidManifest.xml:

<!-- N/A -->


Environment

Click To Expand

react-native info output:

 OUTPUT GOES HERE
  • Platform that you're experiencing the issue on:
    • iOS
    • Android
    • iOS but have not tested behavior on Android
    • Android but have not tested behavior on iOS
    • Both
  • react-native-firebase version you're using that has this issue:
    • e.g. 5.4.3
  • Firebase module(s) you're using that has the issue:
    • e.g. Instance ID
  • Are you using TypeScript?
    • Y/N & VERSION


@MichaelVerdon
Copy link
Collaborator

Hey there, I been unable to reproduce this issue on the latest versions, can you try updating your Firebase and React Native version and let me know how it goes?

@ssobcuk
Copy link
Author

ssobcuk commented Jan 21, 2025

Hey there, I been unable to reproduce this issue on the latest versions, can you try updating your Firebase and React Native version and let me know how it goes?

@MichaelVerdon I noticed that this problem does not occur due to changes in the database, but at the moment when the push notification arrives. And after that, the subscription to the database stops working. Everything is done according to the instructions from the documentation, but the problem with BUNDLE ./index.js remains.

I tried notifee and react-native-push-notification to show notifications but it doesn't make a difference

@MichaelVerdon MichaelVerdon added the plugin: database Firebase Realtime Database label Jan 27, 2025
@MichaelVerdon
Copy link
Collaborator

Are you able to send a minimal reproducible example? Like make a repository I can clone and investigate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked: customer-response plugin: database Firebase Realtime Database type: bug New bug report
Projects
None yet
Development

No branches or pull requests

2 participants