-
Notifications
You must be signed in to change notification settings - Fork 31
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
Android incoming call/push notification doesn't work #462
Comments
Hi @ViktorSyrotkin thanks for the thorough details with your issue report, it helps us tremendously with debugging your issue. Do you see any logs in your logcat about an FCM token? The line should read something like "Refreshed FCM token: ..." |
You also mentioned that you disabled the built in Firebase messaging service, what 3rd party Firebase messaging service are you using? And how are you using the |
Hey @mhuynh5757 Thanks for quick response!
|
You'll have to disable the build in Firebase messaging service that we include in our library. You can find out more about it here: https://github.com/twilio/twilio-voice-react-native/blob/main/docs/out-of-band-firebase-messaging-service.md |
Also, you can force refresh the FCM token by uninstalling the app and reinstalling it on your device. This might help if the FCM token is out-of-date or expired. |
@mhuynh5757 I did it just after installed version 1.2.1. Unfortunately , didn't help |
@mhuynh5757 did token force update too. I can see it changing in the console. Tokens are different each time I reinstall the app. |
I have read all the issues and all the docs on this sdk. I saw you recommending all this steps to other developers in similar issues. |
Hey @ViktorSyrotkin can we do a test to see if your credentials are set up properly? Can you try to make an incoming call using our test app that's built into the repo under |
@mhuynh5757 Hey. Thanks for the response! I have tested the test/app/ and it behaves exactly like my own app does. |
@ViktorSyrotkin yeah that would appear to be the case since I am able to make outgoing calls and receive incoming calls with the test app. Have you figured out your credential issue or are you still having trouble? |
No events or notifications were triggered for incoming calls on Android.
Pre-submission Checklist
or sensitive account information (API keys, credentials, etc.) when reporting this issue.
Description
I am not able to receive an incoming call event. I am not able to receive incoming call push notification. Firebase handlers not firing for twilio incoming call pushes but works for app pushes. I am using the flag for disabling twilio notification service. Tested on v1.2.1 and v1.3.0 – no result.
Everything is setup in twiml console.
Device is registered successfully with the same token that I get from Firebase. ( I can see it from the logs in logcat).
It was also confirmed that the call is starting and we are dealing to this user on the backend and it looks normal - like nobody answered.
Reproduction Steps
1.Completed all steps as described in the Twilio Voice React Native SDK documentation.
2.Set up a Firebase project and linked it for FCM.
3.Followed instructions for Twilio Push for FCM HTTP v1 API.
4.Updating-Twilio-Push-for-FCM-HTTP-v1-API.
5.Registered for incoming calls using the Twilio SDK with:
voice.on(Voice.Event.Registered, () => {
console.log('Successfully registered for incoming calls');
});
5.No further events or notifications were triggered for incoming calls.
Expected Behavior
Expect to receive push and incoming call event as it is on ios.
Actual Behavior
I am not able to receive an incoming call event. I am not able to receive incoming call push notification.
Reproduction Frequency
Constantly reproducing
Screenshots
This is what I see in the logcat when I start the call and then drop it.
Software and Device Information
The text was updated successfully, but these errors were encountered: