Page 1 of 1

url scheme support in iOS

Posted: Thu Mar 30, 2017 5:16 am
by brodwils
From previous posts I have trawled through, it appears one can launch another installed app using its custom url scheme. But in testing a livecode iOS app installed on my iphone via Xcode, I fail to get anything to happen:

on mouseUp
launch url "whatsapp://send?text=Hello%20World!"
answer the result with OK
end mouseUp

The answer dialog shows "no association"

What am I missing??

iOS 10.2.1 and Livecode Community 8.1.3

Re: url scheme support in iOS

Posted: Thu Mar 30, 2017 1:49 pm
by LiveCode_Panos
Hi brodwils,

This is a result of some security changes introduced on iOS 9+. From iOS 9+, you have to whitelist the custom URL schemes your app can open. You can do this by "hacking" the plist file that is used with the standalone.

See bug http://quality.livecode.com/show_bug.cgi?id=18687 for more details and a workaround.

Best,
Panos
--

Re: url scheme support in iOS

Posted: Fri Mar 31, 2017 6:35 am
by brodwils
Hi Panos - I never would have figured out how to fix that, but now got it working thanks to your steer.
Many thanks,
Mark

Re: url scheme support in iOS

Posted: Fri Mar 31, 2017 2:32 pm
by LiveCode_Panos
Hi Mark,

I am glad this helped :)

Best,
Panos
--