jefflinwood / twilio_client_phonegap

Phonegap plugins for the Twilio Client iOS and Android SDKs
MIT License
59 stars 53 forks source link

Legacy VoIP Background Mode? #79

Open jonathanhollander opened 7 years ago

jonathanhollander commented 7 years ago

Hello, I've integrated this plugin. When my app goes to the background, I can see this in the console:

Legacy VoIP background mode is deprecated and no longer supported

Is there anyway to use the non-legacy version?

jefflinwood commented 7 years ago

Hi,

There is a new set of Twilio clients that support the new CallKit modes for iOS, called Twilio Voice - I have a plugin that supports an older version of Twilio Voice that I need to update - it is not directly compatible with the Twilio Client project.

I think you can safely build with this version for now, and then port later to the other plugin.

jonathanhollander commented 7 years ago

Hi thanks for replying! Sorry I misunderstand your directions. are you basically saying to just ignore it and this current plugin as for now, and then later port it when you fix it?

When you say "I have a plugin that supports an older version of Twilio Voice that I need to update" are you referring to this plugin we're commenting on?

As of now it seems that this plugin only works when I have the app in the foreground. Incoming Call Event handlers do not fire when the app is in the background.

jefflinwood commented 7 years ago

Hi,

There's another plugin that I wrote here:

https://github.com/jefflinwood/twilio-voice-phonegap-plugin

It needs to be updated to the latest versions of the Twilio Voice SDK's. That should solve your background issues - otherwise, you'll need to send push notifications to your app when you get an inbound call.

Thanks!

jonathanhollander commented 7 years ago

Thanks for clarifying.

What are the differences between these 2 plugins, by just reading the name it sounds more like I should have been using that plugin all along.

jefflinwood commented 7 years ago

Hi,

Well, the big difference is the underlying libraries - the plugins just wrap the Twilio client libraries.

Also, the Voice plugin doesn't have documentation yet. It does have a sample app.

You could probably use that one, it uses access tokens, not capability tokens - like the ones in the Twilio Voice iOS quickstart.

adamduren commented 7 years ago

@jefflinwood Is the plan to eventually deprecate this library in favor of twilio-voice-phonegap-plugin?

jefflinwood commented 7 years ago

Hi,

I'm not planning to deprecate this plugin unless Twilio stops supporting the underlying client libraries (because it tracks those libraries).

Thanks!