react-native-incall-manager icon indicating copy to clipboard operation
react-native-incall-manager copied to clipboard

Crash when sending Proximity event

Open samuelscheit opened this issue 3 years ago • 1 comments

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

samuelscheit avatar Dec 31 '22 01:12 samuelscheit

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

disco-panda avatar Jul 11 '24 15:07 disco-panda