Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when sending Proximity event #209

Open
SamuelScheit opened this issue Dec 31, 2022 · 1 comment
Open

Crash when sending Proximity event #209

SamuelScheit opened this issue Dec 31, 2022 · 1 comment

Comments

@SamuelScheit
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants