my app started to appear too much anr about react native firebase #5680
Replies: 1 comment 8 replies
-
So, ANRs are tough to fix. They are a special form of performance optimization, and if you've never done performance optimization the first thing you need to know is that you must a) have a good reproduction - you may need to purchase some low-end android phone that reproduces the problem and learn how to get it set up so you see the problem I believe react-native-firebase is implicated here but I do not believe it is at fault What do I mean by that? Well, the firebase broadcast receiver is the entry point for the app to be woken up, by a remote notification. So, this module shows up in your reports, because we are the handle used to begin app execution. However, the app is (for whatever reason) taking longer than 10 seconds to boot and then respond the remote notification. Why? Who knows! You could literally program a javascript hook that sleeps for 11 seconds, you would get an ANR and it would look like react-native-firebase receiver triggered the ANR. But that is not the module's fault is it? There is more good information here, to help you on the journey of app startup performance optimization / ANR avoidance: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
im facing a anr problem about 4 months and i cant fix it.
the error is
Broadcast of Intent { act=com.google.android.c2dm.intent.RECEIVE flg=0x11000010 pkg=com.xxxyyy cmp=com.xxxyyy/io.invertase.firebase.messaging.ReactNativeFirebaseMessagingReceiver (has extras) }
app working nice but some devices facing problem.actually i dont have any idea to fix it.and i cant find any solution.
can someone help me, thank you.
Beta Was this translation helpful? Give feedback.
All reactions