react-native-incall-manager icon indicating copy to clipboard operation
react-native-incall-manager copied to clipboard

events are not firing on Android

Open sathishkrishnan20 opened this issue 5 years ago • 2 comments

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

sathishkrishnan20 avatar Apr 11 '20 14:04 sathishkrishnan20

Same here. I'm testing iOS

eroy4u avatar Sep 03 '20 04:09 eroy4u

I am also facing same issue. Anyone find any clue/solution?

Taha39 avatar Jan 14 '21 16:01 Taha39