Page 1 of 1

Making a Call...

Posted: Mon May 07, 2012 5:42 pm
by rrBUSS9EE
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!

Re: Making a Call...

Posted: Mon May 07, 2012 5:49 pm
by Klaus
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

Re: Making a Call...

Posted: Mon May 07, 2012 6:14 pm
by rrBUSS9EE
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.

Re: Making a Call...

Posted: Mon May 07, 2012 6:34 pm
by Klaus
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

Re: Making a Call...

Posted: Mon May 07, 2012 7:01 pm
by FireWorx
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

Re: Making a Call...

Posted: Mon May 07, 2012 7:51 pm
by rrBUSS9EE
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.

Re: Making a Call...

Posted: Mon May 07, 2012 9:39 pm
by Klaus
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