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

DisplayIncomingCall UI is not working in Android.

Open
#222 9 comments 0 reactions 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

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

  • Reproduced on:

  • Android

  • iOS

Description

I have integrated RNCallKeep as per the guidance specified in repo, It looks strange that it is able to show displayIncomingCallUI on iOS, however it seems to be not working in android. it seems so strange that the code is similar which means, when we replicate the code as per the demo, it should work irrespective of the platforms. How come it won't work for android, even after following setup instructions and demo example. Can anyone help me where I am committing a mistake.

Steps to Reproduce

Code

const options = {
      ios: {
        appName: "Sovereign Wallet",
      },
      android: {
        alertTitle: "Permissions required",
        alertDescription: "This application needs to access your phone accounts",
        cancelButton: "Cancel",
        okButton: "ok",
        additionalPermissions: [PermissionsAndroid.PERMISSIONS.READ_CONTACTS]
      },
    };

    try {
      RNCallKeep.setup(options);
      RNCallKeep.setAvailable(true); // Only used for Android, see doc above.
    } catch (err) {
      console.error('initializeCallKeep error:', err.message);
    }

    RNCallKeep.addEventListener('answerCall', this.onAnswerCallAction);
    RNCallKeep.addEventListener('endCall', this.onEndCallAction);

Displaying like this when on a push notification
RNCallKeep.displayIncomingCall(this.getCurrentCallId(), "XX Name", 749nsusd7b, "",true);

Versions

- Callkeep: 3.0.12
- React Native: 0.59.9
- iOS: 
- Android: android 7.1.1
- Phone model: Samsung A51, oppo 

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 with the repository example and the Android setup instructions, then trace the RNCallKeep.setup, setAvailable, and displayIncomingCall entry points using the reported CallKeep 3.0.12 and React Native 0.59.9 versions. Reproduce on Android with logs captured; done when the cause is identified and displayIncomingCall shows the incoming-call UI or the required setup correction is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java, react-native
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.