Page 1 of 1

detecting phone capabilities

Posted: Thu Feb 05, 2015 8:38 pm
by joel.epsteinBUS31vi
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

Re: detecting phone capabilities

Posted: Fri Feb 06, 2015 1:18 pm
by Dixie
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.

Re: detecting phone capabilities

Posted: Fri Feb 06, 2015 2:41 pm
by joel.epsteinBUS31vi
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