cant get Ti.Platform.openURL('tel: to work
I have problem using the Ti.Platform.openURL('tel:123456');
My code goes as follow:
var b_call = Ti.UI.createButton({
title:'Call',
width:150,
top: 100,
height:50
});
b_call.addEventListener('click',function() {
//Ti.Platform.openURL('http://www.google.com'); <-- This works fine
Ti.Platform.openURL('tel:1234567'); //This does not work?!
});
w.add(b_call);
The commented line works fine and opens up the browser but the telephone line doesn't work.
Any ideas?!?! It looks like I've done things correct, I just want to make a simple call
Big thx!
//Pingo
2 Answers
-
Try Ti.Platform.openURL('tel://5555555555')
-
Are you sure the entered telephone number is valid? Your code looks good.