I'm trying to use the Twilio Client on an AngularJS app. Server side is on Laravel PHP. I tested the Quickstart for PHP and I'm trying to adapt it to this actual case.
I created an endpoint on Laravel to get a capability token on angular -I'm getting it already- then:
vm.token = response.token;
vm.message = response.identity;
Twilio.Device.setup(vm.token);
Twilio.Device.ready(function(device){
vm.message = "Twilio.Device ready";
});
Since nothing happened, I placed a button to verify the status of Twilio.Device
function deviceStatus(){
vm.status = Twilio.Device.status();
}
The status is always returning OFFLINE. I already verified account id, token and Twiml app sid and everything is ok.
Am I doing something wrong? missing some step?