-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
No task registered for key RNFirebaseBackgroundMessage #1174
Comments
It happens because you did not follow the optional steps listed here. Unfortunately if you followed the steps and added the Documentation should be updated to reflect this. |
@bunea But i am setting up local notifications only. Still i have to do this for local also? they didn't mention it for local. |
@kishanj918 If you don't need data only notifications you can remove
from your AndroidManifest.xml |
@bunea thanks! will give it a try. for now closing this. |
Can we re-open? I am seeing this thousands of times and have combed through the documentation. The odd part is that it looks to be working (the functionality of the background handler) but still receiving tons of crashes on crashlytics, see attached: AndroidManifest.xml:
MainApplication.java:
In
|
@kishanj918 Can you re-open this please? We are still receiving this error. |
Re-opened as per @luskin 's request. |
We're experiencing the same error in prod. Current attempt to fix is to upgrade from: Release notes on version bump indicate a potential issue/fix: Will report back on results. Thought I'd share in case it helps someone else before we have definitive results. |
Thanks @pscarey, curious to see how this works out for you. |
At this stage, it looks like our error rates have dropped. IIRC, we also had to tweak some other dependencies to get the upgraded libraries to build. |
I had this crash when sending data-only notifications to my android app with RN version 55.4, and RNF version 4.3.8. |
Our root cause was writing |
I'm not entirely sure what to do with this one right now, there's no way in React Native on the Android side to detect whether Open to suggestions? It is pretty much a case of documentation but then it'd be better if it could not crash if you forget to register a task, kind of makes the optional step not optional as well 😞 |
In our case, this exception happens if app was force closed. |
Sorry to ask again but any updates about this issue? |
I will see what I can do for this on the v5.3.0 release today but as mentioned above I'm not sure what I can do based on the limitations. |
Is there a reason why this error would occur if we never send any data-only messages? Yes, we currently have our setup misconfigured such that the service is in the AndroidManifest.xml but we don't have a background message handler, but why would that even be triggered? |
If you ever use e.g. Get a cup of ☕ and read through that and it will likely be eye-opening |
Hey all, this has landed on React Native master in facebook/react-native#24671 thanks to @timwangdev 🎉 this change means it will no longer throw an exception but instead warn - making tasks optional now. I've made a request to get it cherry-picked into the RN 0.60.x release: react-native-community/releases#116 (comment) please track this there |
Issue Description
I have installed fabric for crash reporting. I have released build to play store. I am getting this crash in fabric in new release. I am not getting this error in debug. Basically i am trying to set local schedule notification in app.
Environment
The text was updated successfully, but these errors were encountered: