react-native-webrtc / react-native-incall-manager

Handling media-routes/sensors/events during a audio/video chat on React Native
ISC License
547 stars 191 forks source link

Crash when sending Proximity event #209

Open SamuelScheit opened 1 year ago

SamuelScheit commented 1 year ago
RCTCallableJSModules is not set. This is probably because you've explicitly synthesized the RCTCallableJSModules in RNInCallManager, even though it's inherited from RCTEventEmitter.
(
    "4   MyApp.                               0x0000000105a959b4 _ZL38MSACCrashesUncaughtCXXTerminateHandlerv + 740",
    "5   libc++abi.dylib                     0x0000000200e71f28 FA871417-BE08-3E90-B33C-A6AA89813F3B + 69416",
    "6   libc++abi.dylib                     0x0000000200e74ecc __cxa_rethrow + 148",
    "7   libobjc.A.dylib                     0x00000001ad2096b4 objc_exception_rethrow + 44",
    "8   CoreFoundation                      0x00000001b3f48f98 CFRunLoopRunSpecific + 808"
)

Reproduction code

InCallManager.start({ media: "audio", auto: true, ringback: "_DTMF" })
InCallManager.setSpeakerphoneOn(speaker.current);

DeviceEventEmitter.addListener("Proximity", function (data) {
    // --- do something with events
});

NativeModules.InCallManager?.addListener?.("Proximity");

Version react-native-incall-manager: 4.0.0 react-native: 0.70.4 iOS: 16.1.2

disco-panda commented 2 months ago

Experiencing the same - any ideas on what is causing this an how to resolve?