react-native-webrtc / react-native-webrtc/react-native-callkeep

How to end incoming call(Caller ends call before Callee accepts/picks the call)

Open
#461 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.1k
Forks
511
Avg merge
9h 12m
Merged PRs (30d)
2

Description

Bug report

  • Reproduced on:
  • [x ] Android

Description

Please I am trying to end an incoming call before the callee accepts/picks the call using callkeep. I saw some solutions in a github issue to :

  • Send another push notification that has a data property e.g isMissedCall then call Callkeep method RNCallKeep.reportEndCallWithUUID(uuid, reason); to end the call.The notifcation gets delivered but firebase OnMessageReceived is never called when the call is actively ringing.

  • Establish a connection to your server and then poll your server to check if the call has been rejected. I was able to implement this for IOS and it worked but on android when the call is actively ringing, I guess the javascript part of app does not run when it in the foreground(not sure the exact state but the app is open but not viewing it at that moment) so my setInterval I use to poll my server for the state of the call never runs.

The first solution didn't work on IOS/Android but the second one works only in IOS.

Please how can I end a call before calllee picks it?

Versions

- Callkeep:4.2.0
- React Native: 0.63.4
- Android: 11
- Phone model: S20 ultra

Logs

Paste here

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 Android 11 case with CallKeep 4.2.0 while an incoming call is actively ringing, then inspect the behavior of RNCallKeep.reportEndCallWithUUID and Firebase OnMessageReceived. Compare the Android behavior with the working iOS polling flow; done means the caller can end the unanswered incoming call reliably on Android.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, react-native
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.