Replies: 1 comment 1 reply
-
Probably historic! react-native-firebase has been around quite some time at this point, the majority of firebase's life itself I think, but we are a bit behind in ingesting upstream change at the moment, especially with respect to structural items (crashlytics init style, iOS init style), this - if it were true I have not investigated sorry - would fit that general theme of "functionality still working / structure may be a bit deprecated" so I would not be too surprised. Without implying it is an obligation, we'd love to have a PR that switched us to a more blessed/current/documented API for this area though given this one of the most important native integration points, and thus one of the most important reasons someone would choose to use these modules vs firebase-js-sdk special care for the current installed base to make sure it's compatible is important Otherwise - in the absence of a PR - since you've just scoured the docs, logging an enhancement issue with points to the current documentation and affected code area makes it a much more digestible work ticket for anyone in the future to triage / verify it's a thing, then perhaps tackle Either way, considering this as a sort of code review / ecosystem comparison, I definitely appreciate the review - both these ecosystems move pretty quickly and results in code rot quicker than I'd personally like, and more than I can handle myself all the time. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In poking around at how this package works while cross-referencing with Google Firebase SDK documentation, I was surprised to see that
ReactNativeFirebaseMessagingService.onMessageReceived
is not implemented, deferring toReactNativeFirebaseMessagingReceiver
- a BroadcastReceiver handling Intents with thecom.google.android.c2dm.intent.RECEIVE
action.Specifically, that action seems to no longer be publicly documented as far as I can tell and seems to be (from Google's perspective?) an internal implementation detail of the Firebase SDK at this point.
This led me to wonder if there are any long term supportability concerns about leveraging this Intent or if there's some sort of understanding with the Firebase team w.r.t. this package? I may be reading too much into not being able to find public Google docs on it anymore, but I found it interesting that react-native-firebase doesn't use
onMessageReceived
which is the official "blessed" API for handling RemoteMessages, despite its documented shortcomings around apps running in the background.Beta Was this translation helpful? Give feedback.
All reactions