jefflinwood / twilio_client_phonegap

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

Incoming Caller Number #72

Open lawchihon opened 7 years ago

lawchihon commented 7 years ago

Cannot get the parameters from the incoming parameters. conn.paramets is undefine

Twilio.Device.incoming(function (conn) {
  console.log(conn.parameters.From);
});
adnanumar commented 4 years ago

@lawchihon i am facing same issue, do you resolved by any chance?

adnanumar commented 4 years ago

Anyone can try this to get params,

Twilio.Device.incoming(function (conn) { conn.parameters(function (pars) { alert(JSON.stringify(pars)); }); });

For more info, see delegates in tcPlugin.js :)