-
Notifications
You must be signed in to change notification settings - Fork 53
Telerik Platform Support #11
Comments
Didn't get a chance to look into this - anything you want to share? |
Hi Jeff, First, thanks to you and Steve for your work on this plugin. We use Twilio I'm an experienced .net/c#/web developer but I'm new to cordova/phonegap. Yesterday I got a lot further and got past the setup line. I better Before I pulled out the cordova.exec statements, things weren't really Not sure why I'm crashing though. I'm getting a generic token using the try
TwilioPlugin.Connection(); try
TwilioPlugin.Connection(); On Mon, Nov 3, 2014 at 5:59 PM, Jeff Linwood notifications@github.com
|
Hi, Yes - you absolutely need to create a capability token with your own Twilio credentials - the generic token that might be in some of the Twilio examples won't work - capability tokens are only good for a limited amount of time, which makes them perfect for mobile apps, so you aren't embedding your credentials into an app that someone can pull them out of. |
I have a method to get a token. I've verified the token is working by successfully using Twilio's javascript client in chrome. But using that same technique in phonegap is not working for me. I can't even figure out how to get error messages back. Would definitely appreciate any guidance. I'm happy to share my project. Whatever works. If anyone is open to sharing a working phonegap sample for making an outgoing call, that would be awesome. |
Hi, the tokens are compatible between Twilio iOS Client, Android Client, and Javascript client, so that's good. I'd be happy to take a look at your code - jlinwood at gmail.com if you don't want to share here. Thanks! |
1 similar comment
Hi, the tokens are compatible between Twilio iOS Client, Android Client, and Javascript client, so that's good. I'd be happy to take a look at your code - jlinwood at gmail.com if you don't want to share here. Thanks! |
Curt, have you had any success? If not, try passing an object to the connect function like so Cordova.exec(null, null, "TCPlugin", "connect", [{}]); I'm using the full plugin and got the connect method to work by passing in an object. |
Hi Ben, I had not had success. Your solution worked for me! Thank you very much! On Tue, Dec 9, 2014 at 8:01 AM, Ben Pedersen notifications@github.com
|
I'm creating a phonegap/cordova app using the Telerik Platform. I have it compiling using their build server. (I'm not doing my own builds with Xcode or similar). I have a server to retrieve the token. That's all working fine.
Whenever I run Twilio.Device.setup(token) the app starts. I can't get any error messages out of it or anything. The javascript function executing that command stops executing after that line. I've tried modifying tcPlugin.js like this:
TwilioPlugin.Device.prototype.setup = function (token) {
// Take a token and instantiate a new device object
var error = function (error) {
if (delegate['ondeviceerror']) delegate'ondeviceerror'
if (delegate['onconnectionerror']) delegate'onconnectionerror'
alert(error);
}
Still nothing coming back. Any ideas to help me troubleshoot this error?
The text was updated successfully, but these errors were encountered: