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

'WiredHeadset' event not working on iOS

Open
#73 3 comments 2 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'm using the below pattern (1.) per the docs, but the 'WiredHeadset' event doesn't seem to be firing on iOS. I also tried with NativeEventEmitter (doing this by using NativeModules to get the InCallManager then wrapping it in NativeEventEmitter, see 2.). I'm on version 0.53 of RN.

import { DeviceEventEmitter } from 'react-native';

DeviceEventEmitter.addListener('WiredHeadset', function (data) {
    // --- do something with events
});

const InCallManagerEvent = new NativeEventEmitter(NativeModules.InCallManager)

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 documented DeviceEventEmitter pattern on iOS with React Native 0.53, then compare it with the NativeEventEmitter(NativeModules.InCallManager) setup described in the issue. Trace the WiredHeadset event entry point and verify that a connected or disconnected wired headset produces the documented event on iOS.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, javascript
Domain
audio-video-rtc, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.