Reputation: 1518
First i was trying to do this without any plugin. I had sanitized tel: in the code. <a href="tel:0038098754215">
, which was working from webpage but not from mobile android.
Then i tried to add this plugin Call Number which was added successfully but the code which i was running
setTimeout(function(){
console.log('testing');
window.plugins.CallNumber.callNumber(function(res){
console.log('res');
console.log(res);
}, function(err){
console.log('err');
console.log(err);
}, '00380680576169', true);
},10000);
Had as result from browser
testing
err
Missing Command Error
null
and from mobile:
testing
null
And inside config.xml i am adding
<access origin="tel:*" launch-external="yes" />
Upvotes: 0
Views: 612
Reputation: 1439
Did you add your code inside the "DeviceReady" function? Besides, I don't think you can test this plugin using the browser, but on the device only.
Upvotes: 0
Reputation: 1212
Add the following code in config.xml
<access origin="tel:*" launch-external="yes" />
Upvotes: 1