Closed irregularprofit closed 9 years ago
Hi,
It's nothing you are doing wrong - it's just a feature of the Twilio Client SDK that hasn't been implemented yet in the PhoneGap plugin.
It should be pretty straightforward to add it, I don't see any road blocks or reasons it couldn't be done. I'll try and get to this shortly.
Thanks! Jeff
Quick Update, I've got the iOS version coded up, now I just need to create a sample application that uses connection parameters, then I'll do the Android version.
That's awesome.
New to Objective-C so I am looking forward to seeing the completed code, whether or not it confirms what I think has to be the necessary changes.
To update this, would I just need to copy the updated files into my xcode project again? Or should I uninstall through plugman and reinstall again?
You can just copy the updated files into your project.
Hi,
Check out the updates to the code in the most recent commits, and if this solves your problem, feel free to close this issue - otherwise, let me know what you need.
Thanks! Jeff
From a quick glance it appears that parameters has been implemented asynchronously. So the form would be:
conn.parameters(function(parameters) {
alert(parameters.From);
});
Is that correct, Jeff?
Yes, that's correct! It's similar to connection status.
Jeff
On Wednesday, September 3, 2014, Ben Pedersen notifications@github.com wrote:
From a quick glance it appears that parameters has been implemented asynchronously. So the form would be:
conn.parameters(function(parameters) { alert(parameters.From);});
Is that correct, Jeff?
— Reply to this email directly or view it on GitHub https://github.com/jefflinwood/twilio_client_phonegap/issues/9#issuecomment-54358124 .
Awesome. I have access to the parameters field now.
Hi Jeff.
First of all I would like to say this is a great project. It's already save me loads of time, and probably a great many head aches to come.
I am currently trying to receive calls from Twilio on my phonegap project. And according to https://www.twilio.com/docs/client/connection#parameters, the connection object should contain both status and parameters.
I can see the status value just fine. However, attempting to access the parameters field, I am getting a undefined response. Is this a factor of the phonegap plugin that hasn't been implemented? Or might I be doing something commonly wrong?
This is the pertinent part of the code