react-native-webrtc / react-native-webrtc/react-native-incall-manager
Not firing WiredHeadset event.
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 597
- Forks
- 201
- Avg merge
- 2h 42m
- Merged PRs (30d)
- 1
Description
I have tried two methods, but none of them are firing the event:
Method 1:
import { DeviceEventEmitter } from 'react-native';
DeviceEventEmitter.addListener('WiredHeadset', function (data) {
// --- do something with events
});
Method 2:
import { NativeEventEmitter, NativeModules } from 'react-native';
const nativeBridge = NativeModules.InCallManager;
const NativeModule = new NativeEventEmitter(nativeBridge);
this.wiredHeadsetListener = NativeModule.addListener('WiredHeadset', (data) => {
// do something
});
Any help would be appreciated
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the missing WiredHeadset event with the two listener approaches shown: DeviceEventEmitter and NativeEventEmitter using NativeModules.InCallManager. Compare whether either listener receives data; done means identifying why the event does not fire and documenting or fixing the event path.
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
- Needs clarification
- Newbie friendliness
- 25/100