-
Notifications
You must be signed in to change notification settings - Fork 444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Outgoing Call Never Stops "Dialing" Android #257
Comments
|
I've tried |
Hi @stephanoparaskeva - what kind of uuid are you using? Firstly don't call backToForeground yet - just get the call into an answered state. Have you looked at the logs from android ? |
The library is called import { v4 as uuid } from 'uuid'; The logs for android are far too flooded and have way too much information for me to decipher. Before (issue occurring) const onRemoteStreamListener = async (
_session: Session,
userId: number,
stream: Stream
) =>
setRemoteStreams([...remoteStreams, { userId, stream }], () => {
InCallManager.start({ media: 'video', auto: false });
InCallManager.setSpeakerphoneOn(true);
RNCallKeep.backToForeground();
}); After (issue still persists): const onRemoteStreamListener = async (
_session: Session,
userId: number,
stream: Stream
) =>
setRemoteStreams([...remoteStreams, { userId, stream }], () => {
InCallManager.start({ media: 'video', auto: false });
InCallManager.setSpeakerphoneOn(true);
const id = oneTimeId();
RNCallKeep.setCurrentCallActive(id);
}); The complete code can be found here |
Issue is still occuring |
Because this issue has been fixed in fork repo. |
But this needs to be merged into master... |
It's just a work-around. I just fix it in my fork repo because merging this fix into master branch may lead to another bugs. |
I have the same issue, any update? |
Still no updates? I have the same issue and ThinhVu commit fixes it for me too. Would be nice if someone could review that and merge it into master. |
There is no pull request into this repo from what I've seen? |
That's true. I've just created one. This is my first pull request, I hope everything is OK. |
I think this issue is also related #436 I had that problem too, endCall listener always receives a different callUUID than what I originally passed on startCall. But if I used the original uuid passed to start to endCall() it works. |
Yeh, looking at androids code, the uuid you passed to startCall gets overridden. You can listen to const onNativeCall = ({ callUUID }: { callUUID: string }) => {
// _onOutGoingCall on android is also called when making a call from the app
if (Platform.OS == "android") setUuid(callUUID);
};
RNCallKeep.addEventListener("didReceiveStartCallAction", onNativeCall); |
Bug report
I've checked the example to reproduce the issue.
Reproduced on:
Android
Description
I call RNCallKeep.startCall(id, name, name) and the outgoing call begins. The android device displays "Dialling". When the callee accepts the call, the RNCallKeep.backToForeground() successfully runs. But the call is still in "Dialling" mode.
I've tried calling many different functions before/after the "RNCallKeep.backToForeground()" Call:
None Have Worked
The text was updated successfully, but these errors were encountered: