Titanium.Platform.openURL stopped working
Just testing my app and my "make a call button" has just stopped working.
Has anything changed?
var tel = Titanium.UI.createAlertDialog(
{
title:'Make a call',
message:'would you like to call now?',
buttonNames: ['No thank you','Yes please'],
});
tel.addEventListener('click', function(e){
if (e.index == 1){
var telNum = telephone.url;
var telNumClean = telNum.split(' ').join('');
Titanium.Platform.openURL('tel:'+telNumClean);
Ti.API.info('tel:'+telNumClean);
}
});
1 Answer
-
school boy error! accidentally misspelt a variable….. doh!