In the docs I did find a description of "URL launching support", which allows one to start another app thru a uri-scheme.
The Q is whether we can also start a LiveCode app from another app thru a URI, and communicate information thru that URI.
If yes, where can we find the URI info that was used to start the LiveCode app?
Thanks, Frank.
PS. I've used this before n objective-c as in listing 3-3 of tinyurl: 3oywwd8
(sorry for the cryptic link... weird... why can I not add a url link to my post ???)
(ough... that "save" (draft) instead of "submit" is confusing...)
URL launching of a LiveCode app?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: URL launching of a LiveCode app?
Someone has been compiling a list of iOS apps that have custom launch URIs < http://applookup.com/ >
Here is the Apple documentation on how to allow your app have a custom launch URI Implementing Custom URL Schemes
Here is the Apple documentation on how to allow your app have a custom launch URI Implementing Custom URL Schemes
Re: URL launching of a LiveCode app?
Thanks for the pointers.
The "Implementing Custom URL Schemes" link was actually the same as the tinyurl that I (unsuccessfully) tried to add to my original post. I have used that "recipe" in Objective-C before and it is relatively easy to implement (application:handleOpenURL: method).
However, it would be easier if LiveCode would support this out-of-the-box, meaning making the URL available with which the LiveCode-app was launched such that the implementation can decide what schema to support. It is not clear to me yet whether LiveCode already does support this or not.
You still have to add some Info.plist-properties, which would allow you to start the LiveCode-app thru a URI-launch, but that by itself would not make the information passed in that URI available to that app without implementing the application:handleOpenURL: method.
If LiveCode does not support it (yet), then it may not be that easy to add it thru a native objective-c extension as it is implemented thru a call-back (application:handleOpenURL: method) - I added the implementation to the AppDelegate.m - not sure if that is possible with the LiveCode IOS-extension SDK (?). If someone can show me how it can be done, that would be great and I'd be happy to share the code that makes this work.
Any additional help is appreciated.
Thanks, Frank.
The "Implementing Custom URL Schemes" link was actually the same as the tinyurl that I (unsuccessfully) tried to add to my original post. I have used that "recipe" in Objective-C before and it is relatively easy to implement (application:handleOpenURL: method).
However, it would be easier if LiveCode would support this out-of-the-box, meaning making the URL available with which the LiveCode-app was launched such that the implementation can decide what schema to support. It is not clear to me yet whether LiveCode already does support this or not.
You still have to add some Info.plist-properties, which would allow you to start the LiveCode-app thru a URI-launch, but that by itself would not make the information passed in that URI available to that app without implementing the application:handleOpenURL: method.
If LiveCode does not support it (yet), then it may not be that easy to add it thru a native objective-c extension as it is implemented thru a call-back (application:handleOpenURL: method) - I added the implementation to the AppDelegate.m - not sure if that is possible with the LiveCode IOS-extension SDK (?). If someone can show me how it can be done, that would be great and I'd be happy to share the code that makes this work.
Any additional help is appreciated.
Thanks, Frank.
Re: URL launching of a LiveCode app?
Seems like you would either need to do this as an external (as you were thinking) or submit it as a feature request..