url scheme support in iOS

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
brodwils
Posts: 5
Joined: Sun Aug 18, 2013 3:45 pm

url scheme support in iOS

Post by brodwils » Thu Mar 30, 2017 5:16 am

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

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 864
Joined: Fri Feb 06, 2015 4:03 pm

Re: url scheme support in iOS

Post by LiveCode_Panos » Thu Mar 30, 2017 1:49 pm

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
--

brodwils
Posts: 5
Joined: Sun Aug 18, 2013 3:45 pm

Re: url scheme support in iOS

Post by brodwils » Fri Mar 31, 2017 6:35 am

Hi Panos - I never would have figured out how to fix that, but now got it working thanks to your steer.
Many thanks,
Mark

LiveCode_Panos
Livecode Staff Member
Livecode Staff Member
Posts: 864
Joined: Fri Feb 06, 2015 4:03 pm

Re: url scheme support in iOS

Post by LiveCode_Panos » Fri Mar 31, 2017 2:32 pm

Hi Mark,

I am glad this helped :)

Best,
Panos
--

Post Reply