jefflinwood / cordova-plugin-twiliovoicesdk

PhoneGap/Cordova Plugin for Twilio Programmable Voice SDK
MIT License
20 stars 51 forks source link

Missing setup guide #69

Open ghost opened 4 years ago

ghost commented 4 years ago

Hi @jefflinwood I want to integrate this plugin into my Ionic 4 app. Could you please provide setup instructions so that I can get started with this plugin. Thank you

jefflinwood commented 4 years ago

Hi, I'm going to see if I can get this to work the new Ionic 5, and then document that. The setup should be similar.

ghost commented 4 years ago

Hello, Thank you for your response. In the meantime could you please provide basic steps to simply setup the plugin and made a basic call in the IONIC 4 Thank you

On Fri, Feb 28, 2020 at 6:45 AM Jeff Linwood notifications@github.com wrote:

Hi, I'm going to see if I can get this to work the new Ionic 5, and then document that. The setup should be similar.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jefflinwood/cordova-plugin-twiliovoicesdk/issues/69?email_source=notifications&email_token=AMULL3NO2PM6KURW5W5NWWTRFBQURA5CNFSM4K4AZ7VKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENGS32Y#issuecomment-592260587, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMULL3PPHTJ5JIXHO34MTRLRFBQURANCNFSM4K4AZ7VA .

CharnjeetIotasol commented 4 years ago

@umesh-technource Just add the plugin like:

ionic cordova plugin add cordova-plugin-twiliovoicesdk --variable etc

Then you can simply import plugin in component where you want to use:

const declare Twilio: any;

Twilio.TwilioVoiceClient.call(this.twilioVoiceService.twilioToken, callerId);

I am already using like same way.

chakri3130 commented 4 years ago

How to import plugin in component, please help me out. Thanks in advance.

CharnjeetIotasol commented 4 years ago

We need to import the plugin in component like this:

const declare Twilio: any;

Just below the import statements

Then we can use the plugin in component: Twilio.TwilioVoiceClient.call(this.twilioVoiceService.twilioToken, callerId);

dhruvvarde commented 3 years ago

@CharnjeetIotasol The way that you have showed that might work with TS file. I am having project in ionic react + capacitor and in JS file the above declaration will not support. can you / @jefflinwood suggest how to use this plugin with ionic react + capacitor project ?

schmorrison commented 2 years ago

I have a working app in Ionic4/Angular8, but updating this thing to Ionic 5 will be hell. @jefflinwood have you ever got a ionic 5 example working? Seems like capacitor is going to be a major pain.