detecting phone capabilities

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
joel.epsteinBUS31vi
Posts: 135
Joined: Thu Sep 13, 2012 10:25 pm

detecting phone capabilities

Post by joel.epsteinBUS31vi » Thu Feb 05, 2015 8:38 pm

Hi all -

I know that I can invoke:

Code: Select all

launch url ("tel:" & tPhoneNumber)
to have an iOS device make a phone call - and a result of "no association" indicates the device can't place calls.

But I'd really like to detect beforehand if the device is even capable of making calls.

Is there any command I can use (which would also be compatible with Android) that will allow me to know if a device has phone-calling abilities?

Thanks so much.

Joel

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: detecting phone capabilities

Post by Dixie » Fri Feb 06, 2015 1:18 pm

Under iOS anyway, why not query launch URL "tel:" & phonenumber just after the app starts and see what it returns in the result... then you will know if the device is capable of making a call or not.

joel.epsteinBUS31vi
Posts: 135
Joined: Thu Sep 13, 2012 10:25 pm

Re: detecting phone capabilities

Post by joel.epsteinBUS31vi » Fri Feb 06, 2015 2:41 pm

Hi Dixie -

Thanks so much for your speedy reply.

I think I must not understand how this function works. I had thought that doing the: launch url ("tel:" & tPhoneNumber) would actually dial the number. Is there a way to query that call without making the call?

And you mentioned that it would only work on iOS. Is there a reason it wouldn't work on Android?

I appreciate your help.

Joel

Post Reply