evollu / react-native-fcm

react native module for firebase cloud messaging and local notification
MIT License
1.73k stars 681 forks source link

ANR on android 4.4 #1038

Open nes123 opened 5 years ago

nes123 commented 5 years ago

RN 0.53 just on Android 4

this is the message:

Broadcast of Intent { act=android.intent.action.BOOT_COMPLETED flg=0x8000010 cmp=com.agrio/com.evollu.react.fcm.FIRSystemBootEventReceiver (has extras) } com.evollu.react.fcm.FIRSystemBootEventReceiver

any ideas what can it be?

evollu commented 5 years ago

this message means FIRSystemBootEventReceiver broadcasted an event, but itself shouldn't cause ANR. could any handler cause this issue?

nes123 commented 5 years ago

this is the full message:

"main" tid=1 Waiting

"main" prio=5 tid=1 WAIT | group="main" sCount=1 dsCount=0 obj=0x4189aea0 self=0x4177f0f0 | sysTid=3343 nice=0 sched=0/0 cgrp=apps/bg_non_interactive handle=1074348372 | state=S schedstat=( 90946513 66716451 252 ) utm=6 stm=3 core=0

at java.lang.Object.wait (Native Method)

evollu commented 5 years ago

seems more related to com.facebook.internal.AttributionIdentifiers$GoogleAdServiceConnection.getBinder (AttributionIdentifiers.java:283)

kyo504 commented 5 years ago

This is related to latest version of facebook-android-sdk(4.36.0). It's a part of RN so you may need to downgrade it to 4.35.0 forcibly.

https://stackoverflow.com/questions/52113549/app-getting-stuck-with-e-com-facebook-internal-attributionidentifiers

nes123 commented 5 years ago

@kyo504 thanks a lot. It solved the problem!