react-native-opentok icon indicating copy to clipboard operation
react-native-opentok copied to clipboard

Can't receive ON_SESSION_DID_CONNECT event on android

Open renanpupin opened this issue 8 years ago • 4 comments

When session connects, android is not receiving the ON_SESSION_DID_CONNECT event. I did the same test on iOS and it is working perfectly.

When I tried to debug the logcat I found the message:

unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["onSessionDidConnect",{"sessionId":"1_MX40..."}])

I hope someone could help me to fix this problem.

renanpupin avatar Dec 04 '17 21:12 renanpupin

Anyone got this?

GuiCavi avatar Dec 05 '17 12:12 GuiCavi

We are already working on fixing this. It happens only on develop mode after reloading JS part of the application because Session Manager Instance is trying to send events using old context.

dratwas avatar Dec 05 '17 13:12 dratwas

Here is my pr waiting for merge with missing events, but we step into other bug with @dratwas which he mentioned and it needs to be solved before merge.

wojteg1337 avatar Dec 05 '17 13:12 wojteg1337

Thank you so much for the explanation.

renanpupin avatar Dec 05 '17 13:12 renanpupin