cybex-dev / twilio_voice

Flutter Twilio Voice Plugin
https://twilio-voice-web.web.app/
MIT License
39 stars 79 forks source link

[IOS] Not receiving incoming call for IOS #196

Closed tanmoy27112000 closed 9 months ago

tanmoy27112000 commented 9 months ago

Issue Summary

I am able to perform outgoing calls but not able to receive incoming call for iOS

Logs:

Successfully registered for VoIP push notifications.

cybex-dev commented 9 months ago

Hi @tanmoy27112000,

Have you been able to receive atleast one working call throughout the time of development on the current app on your iOS device?

tanmoy27112000 commented 9 months ago

Yes we use to get incoming calls earlier but now only outgoing calls are working

tanmoy27112000 commented 9 months ago

@cybex-dev this is very critical , we have regenerated the certificates and confirmed all possible areas, still no incoming calls.

cybex-dev commented 9 months ago

Yes we use to get incoming calls earlier but now only outgoing calls are working

@tanmoy27112000

I see, so it did work but now doesn't.

Please provide more information with regards to:

tanmoy27112000 commented 9 months ago

current version is:

twilio_voice:
    dependency: "direct main"
    description:
      name: twilio_voice
      sha256: c9b0396a1b3d6ed08998da8299a4e7be16d4862c6e3b74cf2c9d901a8a2c190e
      url: "https://pub.dev"
    source: hosted
    version: "0.1.1"

the older version was 0.1.0 according to by GitHub commits

cybex-dev commented 9 months ago

@tanmoy27112000

Feel free to review these changes (via releases / tags) for the corresponding versions here.

No code change has been made to iOS package with exception of a twilio-voice library update (I've updated the release notes to reflect this change), feel free to review Twilio's iOS changelog here aswel.

cybex-dev commented 9 months ago

@tanmoy27112000 I am unable to do so at the moment.

If you can step into the iOS swift code and check if push notifications are infact being received on physical iOS devices - that would be a start.

tanmoy27112000 commented 9 months ago

I have checked with older version, the app is not receiving call

Erchil66 commented 9 months ago

Have you checked the twilio logs? When calling, It should gove error as eg Error 51324 for apn something.

tanmoy27112000 commented 9 months ago

During outgoing call it is working perfectly, but no logs or event is getting triggered for incoming calls

cybex-dev commented 9 months ago

@tanmoy27112000 if you aren't receiving calls on older versions, I suspect something else might be wrong outside of the twilio_voice package.

tanmoy27112000 commented 9 months ago

If there is certificate or token issue can we log them as error?. I added logs in the places where token is getting added and other places but it seems the register process is working smoothly

helpwise-dev commented 9 months ago

@cybex-dev Basically we have three things, iOS mobile app, Android mobile app and Desktop mac app(Electron) and when we are trying to make an inbound call to Twilio number then our call is successfully ringing on Android Flutter App (your flutter voice package) and our desktop app but the same call is not ringing in iOS device. If we do force close desktop app and uninstall android app then we are not receiving the call in iOS again but we are able to outbound call successfully from iOS mobile app.

Could you please check this, or if you want to connect with us on google meet then we can explain more briefly like what's exactly the happening.

@Erchil66 I have checked the backend route and logs of every call in Twilio's dashboard and in case of iOS mobile app( uninstall android app, force closed desktop app but open in iOS) the call is going to unanswered state because no one is picking or answering the call.

cybex-dev commented 9 months ago

@cybex-dev Basically we have three things, iOS mobile app, Android mobile app and Desktop mac app(Electron) and when we are trying to make an inbound call to Twilio number then our call is successfully ringing on Android Flutter App (your flutter voice package) and our desktop app but the same call is not ringing in iOS device. If we do force close desktop app and uninstall android app then we are not receiving the call in iOS again but we are able to outbound call successfully from iOS mobile app.

I understand your meaning - having experienced this in the past, it seemed to be a configuration / sandbox issue in my particular case.

I will take a look at the current implementation, since I did an upgrade of Twilio Voice iOS SDK in the second last version 3 weeks ago, see Release 0.1.1.

tanmoy27112000 commented 9 months ago

@cybex-dev seems like there was a issue with the credential creation we were able to solve it, still trying to understand the root cause of the issue, closing the ticket, will update if we are able to pinpoint the exact bug