react-native-callkeep
react-native-callkeep copied to clipboard
Map already consumed exception (VoiceBroadcastReceiver.onReceive)
Hello everyone) After updating to the latest version of the program, there were a lot of crash reports with the following error:
Exception com.facebook.react.bridge.ObjectAlreadyConsumedException: Map already consumed
at com.facebook.react.bridge.WritableNativeMap.putString
at io.wazo.callkeep.RNCallKeepModule$VoiceBroadcastReceiver.onReceive (RNCallKeepModule.java:1158)
at androidx.localbroadcastmanager.content.LocalBroadcastManager.executePendingBroadcasts (LocalBroadcastManager.java:313)
at androidx.localbroadcastmanager.content.LocalBroadcastManager$1.handleMessage (LocalBroadcastManager.java:121)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loopOnce (Looper.java:233)
at android.os.Looper.loop (Looper.java:344)
at android.app.ActivityThread.main (ActivityThread.java:8191)
at java.lang.reflect.Method.invoke
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:584)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1034)
Maybe someone also faced this problem?
- Reproduced on:
- [X] Android
- [ ] iOS
Versions
- Callkeep: ^4.3.3
- React Native: 0.63.5
- iOS: -
Here are some screenshots from google play console:
I experienced this issue too in self managed mode when I wanted to display an Incoming call from background and the setup was not called before
@nagyszili hmm, are you setting the settings on the native side?
What do you mean? You mean this? I did not setted anything native side, I'm only using a native incoming call screen. I'm using with expo and expo config plugin
@KolissnikBogdan did you find a fix for this?
Fix available on 4.3.4 => https://github.com/react-native-webrtc/react-native-callkeep/commit/6204cc01ec47d521599d9eabc6055d2ef369253e