custom URL won't work

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
simon.schvartzman
Posts: 641
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

custom URL won't work

Post by simon.schvartzman » Tue Oct 18, 2022 6:59 pm

Hi team, I have tested (on iOS simulator) the custom URL scheme following the lesson

https://lessons.livecode.com/m/4069/l/5 ... rl-schemes

and it works fine but when I try to use the same approach on my own APP it downs work.

This is how I did it:

Added the following code to the card script where I want the APP to open

Code: Select all

on urlWakeUp pURL
   ## This message is received by the app when a custom url is used to launch the app
   answer "Got it"
end urlWakeUp
Stand alone settings:
Screen Shot 2022-10-18 at 12.35.07.png
calling from Safari
Screen Shot 2022-10-18 at 12.35.15.png
result:
Screen Shot 2022-10-18 at 12.35.39.png
Screen Shot 2022-10-18 at 12.35.39.png (38.14 KiB) Viewed 7911 times
Can't figure out what I am doing wrong and will appreciate any help/hint

Many thanks
Simon
________________________________________
To ";" or not to ";" that is the question

simon.schvartzman
Posts: 641
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

Re: custom URL won't work

Post by simon.schvartzman » Thu Oct 20, 2022 4:28 pm

With the customary help from Panos I was able to solve the problem.

It is related with using custom plist.

The custom plist has to be modified in order to support custom URL Scheme as described in the bug report below

https://quality.livecode.com/show_bug.cgi?id=23988

Regards
Simon
________________________________________
To ";" or not to ";" that is the question

Post Reply

Return to “Talking LiveCode”