react-native-callkeep icon indicating copy to clipboard operation
react-native-callkeep copied to clipboard

RNCallKeep.displayIncomingCall() is not working for Android 11

Open usamaabutt opened this issue 3 years ago • 5 comments

Hello guys,

I am using react-native-callkeep lib for a calling app and it’s working fine in iOS but in Android it’s not working

RNCallKeep.displayIncomingCall(callUUID, '', callerName)

Doesn’t works for android. Any help will be appreciated, Thanks!

usamaabutt avatar Jun 20 '21 11:06 usamaabutt

@usamaabutt Can you provide more information? Have you tested by just directly calling displayIncomingCall without any of your app logic?

namnm avatar Jun 24 '21 09:06 namnm

I have the same issue, did you manage to solve it ?

men3malgmatti avatar Jul 05 '21 15:07 men3malgmatti

Btw just using yarn android did for me

men3malgmatti avatar Jul 06 '21 07:07 men3malgmatti

Fixed this issue by going to Phone App (Call App) -> Settings -> Call Settings -> All Calling Accounts -> Enable for the app. This was in development mode.

rajasekhar911 avatar Jul 21 '21 12:07 rajasekhar911

I am also using react-native-callkeep lib for a calling app and it’s working fine in iOS but in Android it’s not working

On calling this ->

RNCallKeep.displayIncomingCall(uid, handle, localizedCallerName = '', handleType = 'number', hasVideo = false, options = null);

I am getting following error:

com.facebook.react.bridge.ObjectAlreadyConsumedException: Map already consumed at com.facebook.react.bridge.WritableNativeMap.putString(Native Method) at io.wazo.callkeep.RNCallKeepModule$VoiceBroadcastReceiver.onReceive(RNCallKeepModule.java:1148) at androidx.localbroadcastmanager.content.LocalBroadcastManager.executePendingBroadcasts(LocalBroadcastManager.java:313) at androidx.localbroadcastmanager.content.LocalBroadcastManager$1.handleMessage(LocalBroadcastManager.java:121) at android.os.Handler.dispatchMessage(Handler.java:107) at android.os.Looper.loop(Looper.java:225) at android.app.ActivityThread.main(ActivityThread.java:7563) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:994)

Thank you in advance for your assistance!

shivi126 avatar May 23 '22 10:05 shivi126

@shivi126 Hi, did you manage to solve this problem?

KolissnikBogdan avatar Dec 09 '22 10:12 KolissnikBogdan