react-native-webrtc / react-native-webrtc/react-native-incall-manager
events are not firing on Android
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 597
- Forks
- 201
- Avg merge
- 2h 42m
- Merged PRs (30d)
- 1
Description
I have tried below both 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:
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 Android event-listener examples using DeviceEventEmitter and NativeModules.InCallManager. Inspect how the WiredHeadset event is exposed and verify that a headset route change reaches the listener; done when the documented listener receives the event.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java, javascript, react-native
- Domain
- audio-video-rtc, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100