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

Crash when sending Proximity event

Open
#209 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
597
Forks
201
Avg merge
2h 42m
Merged PRs (30d)
1

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the JavaScript reproduction using InCallManager.start, setSpeakerphoneOn, DeviceEventEmitter, and NativeModules.InCallManager.addListener("Proximity"). Trace the native Proximity event path and the RCTCallableJSModules error; done means the Proximity listener no longer crashes on the reported React Native and iOS versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.