Making a Call...

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
rrBUSS9EE
Posts: 98
Joined: Wed May 02, 2012 3:46 pm

Making a Call...

Post by rrBUSS9EE » Mon May 07, 2012 5:42 pm

Hey…

I must be missing something obvious here. I'd like to have a button that places a call to a specific number, but I can't seem to locate the command that does this. And, ideally a function for determining if the device can make calls, similar to "mobileCanSendMail()".

Thanks!

Klaus
Posts: 14235
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Making a Call...

Post by Klaus » Mon May 07, 2012 5:49 pm

Hi rrBUSS9EE,

...
## OK, this is not too intuitive :D
launch url "your Phone number here"
...
Look for "URL launching support" in the "iOS Release Notes" (Menu: Help).


Best

Klaus

rrBUSS9EE
Posts: 98
Joined: Wed May 02, 2012 3:46 pm

Re: Making a Call...

Post by rrBUSS9EE » Mon May 07, 2012 6:14 pm

Thank you.

I have tested the following example from the dictionary: launch url "tel:44 7818 8822"

In the SIM it does nothing and returns the result "No Association". Is this expected behavior from the SIM?

Also, is there a way to detect if the device is capable of making a call before hand? I would like to modify the interface on devices such as iPods that can not make calls.

Klaus
Posts: 14235
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Making a Call...

Post by Klaus » Mon May 07, 2012 6:34 pm

Hi,

sorry, do not have an iOS license nor an iPhone :)

But how would you PHONE with the simulator (if it worked)? 8)
So I guess this simply does not work in the simulator.

You can check "the machine" to see if you are on "iPhone" or something else!
Check "machine" in the dictionary to see the different "machines".
And see also "environment" and "platform".


Best

Klaus

FireWorx
Posts: 362
Joined: Wed Sep 07, 2011 9:39 pm

Re: Making a Call...

Post by FireWorx » Mon May 07, 2012 7:01 pm

cMon Klaus.... get with the program. no i-phone? R U Amish? You guys still plow fields with cows out der? ha ha.. couldn't resist making fun...
Dave

rrBUSS9EE
Posts: 98
Joined: Wed May 02, 2012 3:46 pm

Re: Making a Call...

Post by rrBUSS9EE » Mon May 07, 2012 7:51 pm

Klaus wrote:But how would you PHONE with the simulator (if it worked)? 8)
I guess I just assumed it would "simulate it".
So I guess this simply does not work in the simulator.
It appears that is indeed the case.
You can check "the machine" to see if you are on "iPhone" or something else!
Thanks so much. Odd that function returns "unknown" here in MacOS. Guess that's a glitch.

Klaus
Posts: 14235
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Making a Call...

Post by Klaus » Mon May 07, 2012 9:39 pm

HI Dave,
FireWorx wrote:cMon Klaus.... get with the program. no i-phone? R U Amish? You guys still plow fields with cows out der? ha ha.. couldn't resist making fun...
Dave
not Amish, but Hutterer!
:lol: :lol: :lol:

No, really don't need any cellphone 8)


Best

Klaus

Post Reply