Special Chars in Launch URL "tel:?????"

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
doobox
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 284
Joined: Tue May 24, 2011 11:47 pm

Special Chars in Launch URL "tel:?????"

Post by doobox » Mon Feb 11, 2013 8:24 am

Hi there,

Is there a workaround to having Astrix, and hash for example in a number you want the dialer to launch on ios..?

Using
launch url "tel:*#101#"
or
launch url "tel:" & numToChar(32) & numToChar(35) & "100" & numToChar(35)

Neither work.
Kind Regards
Gary

https://www.doobox.co.uk

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Special Chars in Launch URL "tel:?????"

Post by jmburnod » Mon Feb 11, 2013 9:40 am

Hi doobox,

Maybe with urlencode ?

Code: Select all

get urlencode("tel:*#101#")
launch url it
best regards
Jean-Marc
https://alternatic.ch

doobox
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 284
Joined: Tue May 24, 2011 11:47 pm

Re: Special Chars in Launch URL "tel:?????"

Post by doobox » Mon Feb 11, 2013 10:49 am

Thank's but that does not work either.
Kind Regards
Gary

https://www.doobox.co.uk

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7238
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Special Chars in Launch URL "tel:?????"

Post by jacque » Mon Feb 11, 2013 7:28 pm

Maybe put the number into a variable first?

get "#101#"
launch url "tel:" & it

If that doesn't work, note that numToChar(32) is a space, so if it wasn't a typo, maybe your concatenation example just needs a different ascii code. Ascii 42 is an asterisk.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Special Chars in Launch URL "tel:?????"

Post by LCNeil » Tue Feb 12, 2013 4:22 pm

Dear doobox,

Using special chars in a launch url is not posible. This is a restriction put in place by Apple to prevent users from maliciously redirecting phone calls or changing the behavior of a phone or account.

Neil Roger
--
RunRev Support Team ~ h t t p ://w w w . runrev . c o m
Support Open Source LiveCode on Kick-starter
h t t p : //w w w . kickstarter .c o m/projects/1755283828/open-source-edition-of-livecode
--

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”