cybex-dev / twilio_voice

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

[ANDROID] Not reopen application when answer call #199

Open tunglthtv opened 1 year ago

tunglthtv commented 1 year ago

Hi @cybex-dev

I can't open applicant when answer call on Android. My application is running in background. I am using android 11 and twilio_voice version 0.0.9. It's seems that close the app immediately when click to answer button. Still you get this error?

cybex-dev commented 1 year ago

Hi @tunglthtv

I would highly advise you use the latest version since 0.0.9 has been deprecated and is almost 4 years old.

cybex-dev commented 1 year ago

Feel free to use 0.1.1 for now, make sure to

I'm preparing a release at the moment which I'll release later today fixing these issues, with enhancements.

tunglthtv commented 1 year ago

@cybex-dev With 0.1.1, How can i call by custom activity on Android, not use callkit system?

cybex-dev commented 1 year ago

@tunglthtv I have no immediate plans on re-adding this support. Maybe in the near future I'll adopt such a project.

If you need a more update-to-date 0.0.9, might I point you to twilio_voice_mimp. It is closed source, but you can update the hosted package manually and self-host on github.

Please review changes merged into twilio_voice from twilio_voice_mimp detailed here.

tunglthtv commented 1 year ago

@cybex-dev Thanks bro

tunglthtv commented 1 year ago

@cybex-dev And if i want to use callkit system of IOS. So can I use ver 0.1.1? And how can I define when have a call from Web to IOS, and show callKit system? I want to sync the outcoming call both android and ios UI/UX.

cybex-dev commented 1 year ago

I would strongly advise you use 0.1.3 instead, it brings a number of crucial Android fixes.

cybex-dev commented 1 year ago

@tunglthtv

And how can I define when have a call from Web to IOS, and show callKit system? I want to sync the outcoming call both android and ios UI/UX.

Could you clarify what you mean with this please.

tunglthtv commented 1 year ago

@cybex-dev I mean when i have an incoming call on ios, and i press answer but it doesn't pop up the ios system callkit.

cybex-dev commented 1 year ago

@tunglthtv this package does this automatically.

tunglthtv commented 1 year ago

@cybex-dev I have received an incoming call. But when i press answer, i want to open as like: image

cybex-dev commented 1 year ago

@cybex-dev I have received an incoming call. But when i press answer, i want to open as like: image

If I understand correctly, you want to have the same iOS callkit UI on Android.

If that is the case, you'll have to either:

  1. go back to a 0.0.9 or similar version, update Android according to your liking and applies changes and fixes.
  2. fork master, manually integrate a custom UI with the currently implemented ConnectionService API (and submit a PR if desired).

Please note: CallKit & ConnectionService API integrate into the native system dialer, this is easier for the user to understand. CallKit and ConnectionService API offer extremely limited customization. I'll be looking to expand as much as the offering allows in the future.

tunbi commented 1 year ago

@cybex-dev i think that he want to open this screen on IOS. He received an incoming call popup. So he pressed answer button and then he want to open calling screen like the call screen system on IOS. He can not open this screen on IOS image

tunglthtv commented 1 year ago

@cybex-dev @tunbi Yes, I want to open that screen on IOS after I accept an coming call

tunglthtv commented 1 year ago

Hi @cybex-dev how can i open this screen? image

cybex-dev commented 1 year ago

Hi @tunglthtv

I don't think that bit is enabled at the moment - should be possible. I'll look to add it in the next release either this week or early next week.