Closed onigetoc closed 9 years ago
Hi,
You'll need to install the plugin into your PhoneGap project first. Thanks!
I am also having difficulty with this. These are the steps i followed.
But i was getting Twilio is undefined on calling setup Twilio.Device.setup(token); So i copied tcPlugin.js and placed it in the js file and included it in the index.html.Now there is no undefined error but the Twilio.Device.ready is not getting called(maybe there is a [robelm because there is two js files).But the success callback in TwilioPlugin.Device.prototype.setup is getting called.Also nothing happens on Twilio.Device.connect
Hi,
It sounds like a Javascript error - possibly if there are two tcPlugin.js files included in your index.html?
No. I have only one tcPlugin.js in index.html (i have attached an image of the file). I deleted the copied version of the file in the js folder.But still nothing happens.
Ok - can you try the HTML and JS from the example app in your project and see if that works?
On Tuesday, July 21, 2015, Inferner notifications@github.com wrote:
No. I have only one tcPlugin.js in index.html (i have attached an image of the file). I deleted the copied version of the file in the js folder.But still nothing happens.
[image: untitled] https://cloud.githubusercontent.com/assets/7397636/8797637/63aa5c6a-2fba-11e5-8934-c50aa726b35d.png
— Reply to this email directly or view it on GitHub https://github.com/jefflinwood/twilio_client_phonegap/issues/30#issuecomment-123250053 .
I am so sorry. I just didn't set up the Twilio API properly. I tried setting up the web api first and now i understand and it works. Thanks a lot for the plugin.
Great! Glad to hear it wasn't an issue with the plugin or your code.
Do you have a full working example with all sdk and index.html page? i tryed with this example: https://github.com/jefflinwood/TwilioClientPhoneGapExampleApp But if i don't add the script to. http://static.twilio.com/libs/twiliojs/1.2/twilio.min.js Nothing happend. and if i add it, it won't work as a Android app.