Skip to content
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

Incoming call notifications not received in IOS #457

Open
2 of 3 tasks
aparnakasi16 opened this issue Dec 3, 2024 · 9 comments
Open
2 of 3 tasks

Incoming call notifications not received in IOS #457

aparnakasi16 opened this issue Dec 3, 2024 · 9 comments

Comments

@aparnakasi16
Copy link

aparnakasi16 commented Dec 3, 2024

Issue

Pre-submission Checklist

  • I have verified that the issue occurs with the latest release and is not marked as a known issue in the CHANGELOG.md.
  • I reviewed the Common Issues and open GitHub issues and verified that this report represents a potentially new issue.
  • I am not sharing any Personally Identifiable Information (PII)
    or sensitive account information (API keys, credentials, etc.) when reporting this issue.

Description

I have successfully registered to twilio push notification with VOIP registry token. But my application is unable to receive any notification on incoming call. Even in logs, I am unable to notice callInvite being triggered. No action is visible on Xcode Logs.
CallSid : [CA8627ad637c097de70f5a27c513c4b871]

Reproduction Steps

  1. run app on iPad
  2. login and register successful
  3. Outgoing works fine
  4. No action on incoming

Expected Behavior

On making an incoming call to my twilio number, incoming call notification was expected.

Actual Behavior

Application stays idle. No action or logs. No notification is received

Reproduction Frequency

Multiple attempts

Screenshots

Xcode logs :
TRACE:Twilio:Platform : Registering for Twilio push notifications
Access Token: 'access token'
VoIP Registry Token: 'VOIP registry token'
DEBUG:Twilio:Platform : Using default home region
INFO:Twilio:Platform : Background task started for registration/unregistration, identifer = 12
DEBUG:Twilio:Platform : Register for push notifications.
Access token saved to AsyncStorage
DEBUG:Twilio:Platform : Completed registration request.
DEBUG:Twilio:Platform : Registration location: https://ers.us1.twilio.com/v1/registrations/xxxxxx
INFO:Twilio:Platform : Inside register:deviceToken:completion:, registered for Twilio push notifications.
'voice registration result', { status: 'fulfilled', value: undefined }
registration/register/fulfilled
loginAndRegister/fulfilled
DEBUG:Twilio:Platform : Ending registration/unregistration background task, identifier = 12
DEBUG:Twilio:Platform : Registration/unregistration background task ended

Software and Device Information

Please complete the following information.

  • Device: iPad 9th Gen
  • OS: IOS 18.1.1
  • React version: 18.2.0
  • React Native version: 0.72.17
  • Node version: v22.6.0
  • npm or yarn version:10.8.2

Additional Context

When an incoming call comes in, do I need to add a webhook with any info? if I am missing.
Is there any backend code required to trigger notification

@mhuynh5757
Copy link
Collaborator

Hi @aparnakasi16 thanks for reaching out. Is this a real physical iPad or a simulated device?

@mhuynh5757
Copy link
Collaborator

Also, have you invoked voice.initializePushRegistry before attempting to register for incoming calls?

@aparnakasi16
Copy link
Author

Hi @mhuynh5757 , Yes it is a physical iPad and I have also invoked voice.initializePushRegistry at the very beginning of my app. I'am able to manually send voip notifications through icloud, so there seems to be no issue with my voip certificate and integration as well. Yet I'm unable to receive any notification on incoming call. Is there something I'm missing in my backend ? Probably in When an incoming call comes in weebhook ?

@aparnakasi16
Copy link
Author

Hi @mhuynh5757 , Thank you for replying . I am able to receive incoming call notification. Changed my backend endpoint when an incoming call comes to make a client call. But when the app is in killed state, I am unable to receive any notification. Could you please give me an input on this ?

@tamdvyounetgroup
Copy link

I can help you

@mhuynh5757
Copy link
Collaborator

@aparnakasi16 you were able to perform voice.register(token) successfully and were receiving incoming calls when the app is foregrounded? And then, let's say you swipe it away from the multitasking view to "kill" the app? And at that point you no longer receive incoming calls?

@aparnakasi16
Copy link
Author

aparnakasi16 commented Dec 12, 2024

@aparnakasi16 you were able to perform voice.register(token) successfully and were receiving incoming calls when the app is foregrounded? And then, let's say you swipe it away from the multitasking view to "kill" the app? And at that point you no longer receive incoming calls?

Yes, that's the case. Receiving incoming call when app is in foreground as well as background. But when the app is killed, I'm not able to receive.

@mhuynh5757
Copy link
Collaborator

I see. And since the app is killed, it will be hard to get Xcode debug logs from your application. If you can try, will Xcode show any crashes or logs for this scenario? I understand if not.

@tamdvyounetgroup
Copy link

tamdvyounetgroup commented Dec 13, 2024

@aparnakasi16 you were able to perform voice.register(token) successfully and were receiving incoming calls when the app is foregrounded? And then, let's say you swipe it away from the multitasking view to "kill" the app? And at that point you no longer receive incoming calls?

Yes, that's the case. Receiving incoming call when app is in foreground as well as background. But when the app is killed, I'm not able to receive.

Please follow my fork repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants