jefflinwood / twilio_client_phonegap

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

Replacement for Twilio.Device.destroy() #64

Open ORCatalin opened 8 years ago

ORCatalin commented 8 years ago

The issue here is that If i setup the twilio device multiple times, even if i call disconnectAll the incoming callback is called multiple times. I didn't found a way to fix this without using destroy() method. Is there any other way?

jefflinwood commented 8 years ago

The solution would be to implement a Javascript method in the plugin that replaced the existing Twilio Device in the plugin, and then calls release() if it is on Android on the Device.