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

Not firing WiredHeadset event.

Open
#161 3 comments 0 reactions 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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.