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

DisplayIncomingCall UI appears for a few moments -> then Disappears (IOS)

Open
#258 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Bug report

  • I've checked the example to reproduce the issue.

  • Reproduced on:

  • iOS

Description

This only happens sometimes, and I can't find how to make it consistent. But it is a critical bug for myself.
When call is incoming on IOS device, sometimes the DisplayIncomingCall UI displays, for < 1 second. Then disappears. The call is still incoming via my VOIP SDK but the incoming call UI screen disappears on IOS. I am not sure what makes this happen. The code is very simple.

Steps to Reproduce

  • Call IOS Device
  • Display Incoming Call UI
  • UI Appears for a moment then disappears
    (Happens on randomly, but is critical as there is no way to connect the call when this happens)

Versions

- Callkeep: Latest
- React Native: 0.63.2
- iOS: 13.5.1
- Phone model: Iphone 6

Code


  const oneTimeId = () => {
    callId.current = callId.current || uuid();
    return callId.current;
  };

  const onCallListener: Listener = async (session, _userId, extension) => {
    ext.current = extension || initExtension;
    sess.current = session || initSession;

    const name =
      users.find(u => u.id === sess?.current?.initiatorID)?.name || '';
    const id = oneTimeId();
    RNCallKeep.displayIncomingCall(id, name, name, 'generic', true);
  };

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 with the linked example and trace the onCallListener path that invokes RNCallKeep.displayIncomingCall. Reproduce the intermittent iOS behavior using the reported React Native, iOS, and iPhone versions, then identify why the incoming-call UI disappears and verify that it remains available for the call to be answered.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, javascript, 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.