You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
packagecom.fcmandroidissueimportandroid.app.Applicationimportcom.facebook.react.PackageListimportcom.facebook.react.ReactApplicationimportcom.facebook.react.ReactHostimportcom.facebook.react.ReactNativeHostimportcom.facebook.react.ReactPackageimportcom.facebook.react.defaults.DefaultNewArchitectureEntryPoint.loadimportcom.facebook.react.defaults.DefaultReactHost.getDefaultReactHostimportcom.facebook.react.defaults.DefaultReactNativeHostimportcom.facebook.soloader.SoLoaderclassMainApplication : Application(), ReactApplication {
overridevalreactNativeHost: ReactNativeHost =
object : DefaultReactNativeHost(this) {
overridefungetPackages(): List<ReactPackage> =
PackageList(this).packages.apply {
// Packages that cannot be autolinked yet can be added manually here, for example:// add(MyReactNativePackage())
}
overridefungetJSMainModuleName(): String = "index"overridefungetUseDeveloperSupport(): Boolean = BuildConfig.DEBUGoverridevalisNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLEDoverridevalisHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
}
overridevalreactHost: ReactHostget() = getDefaultReactHost(applicationContext, reactNativeHost)
overridefunonCreate() {
super.onCreate()
SoLoader.init(this, false)
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
// If you opted-in for the New Architecture, we load the native entry point for this app.load()
}
}
}
Hello 👋, to help manage issues we automatically close stale issues.
This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
This issue will be closed in 15 days if no further activity occurs.
Issue
Hey, first of all, thank you for such a brilliant package!
I get an kinda empty remoteMessage in some case:
onMessage
callback is called with the following empty data:{"sentTime": 0, "ttl": 0, "data": {}}
.I tested it only on Android 14.
So, is this a bug, or should I handle such cases in a specific way?
Project Files
Javascript
Click To Expand
package.json
:firebase.json
for react-native-firebase v6:# N/A
Android
Click To Expand
Have you converted to AndroidX?
android/gradle.settings
jetifier=true
for Android compatibility?jetifier
for react-native compatibility?android/build.gradle
:android/app/build.gradle
:android/settings.gradle
:MainApplication.java
:AndroidManifest.xml
:Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:21.0.0
Firebase
module(s) you're using that has the issue:@react-native-firebase/messaging
TypeScript
?Y
&5.0.4
React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: