twilio / twilio-voice-react-native

Other
74 stars 29 forks source link

CallInvite event not being triggered on Android #427

Closed LukakHR closed 1 week ago

LukakHR commented 1 month ago

Issue

Around a month ago, incoming calls stopped working on Android devices for my app

Pre-submission Checklist

Description

I have a Twilio VoIP app on iOS and Android that used to work properly. About 15-25 days ago we started getting reports that incoming calls aren't working on Android. We did some testing and they weren't working for us either (there have been no updates in this time).

In the Twilio console, the calls are properly logged but they have no errors. They just show as 'No answer' calls. For the caller, the call is ringing so some sort of connection is being established but it's not showing for some reason.

We tested on multiple devices with multiple Android versions in foreground, background and kill state and nothing works. iOS works properly

Reproduction Steps

  1. Follow the installation instructions to install the dependency
  2. Register the device for incoming calls
  3. Call the device
  4. There won't be an incoming call notification

Reproduction Frequency

It is deterministic

Software and Device Information

Please complete the following information.

siddiquesheikh30 commented 1 month ago

Hey, I am also having the same problem did you find any solution to this problem? Software and Device Information

OS: Android React version: 18.3.1 React Native version: 0.75.2 @twilio/voice-react-native-sdk: "^1.1.1"

mhuynh5757 commented 1 month ago

Hello all, thanks for reaching out. Do you happen to be using the Legacy Firebase Push Notification credentials/system? Google recently deprecated those APIs and credentials, and you'll need to update to their new v1 Push Notification system.

mhuynh5757 commented 1 month ago

You can check out the Voice Android Quickstart for info related to this: https://github.com/twilio/voice-quickstart-android#quickstart

nustony commented 1 month ago

Hi @mhuynh5757 I have the same problem. I also updated the new FCM. However, I only get a notification like the attached image without triggering the callInvite function.

Screenshot 2024-09-24 at 10 38 47
LukakHR commented 1 month ago

I did update to the new Push notifications system. Before that, I was getting an error in Twilio console that clearly described what was happening. After fixing that error, it is back to "No answer" as described

mhuynh5757 commented 1 month ago

Hi @nustony it seems like you're using RNFirebase package. We are aware of some issues when using that package with our SDK, there's another issue that's tracking this. The issue is unfortunately quite complicated and we're working on a solution. Please see this issue: #370

mhuynh5757 commented 1 month ago

@LukakHR could you try our test app that's embedded in this repo? I'm wondering if it could be your app/configuration.

mhuynh5757 commented 1 week ago

Hello @nustony we released 1.2.1 that includes a new API for supporting your use case, please update at your earliest convenience.