While most of the system events are handled like applicationStart, applicationStop, applicationResume and applicationSuspend, what about the applicationOpen or equivalent that would basically handle the handleOpenUrl function?
could that be added or is it already available?
There is a function gdr_handleOpenUrl(url); not sure what this function does or how to access this from inside of Gideros.
Comments
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
When doing deep linking on iOS with facebook, i'm stupidly using "code" as my deeplink string, and the result, it crash my app.
This is because facebook also send "code" when they do authorize, it can be changed on App setting at developer.facebook.com, but it still crash your app if you use "code" deeplinking.
So, sometime we need to be careful on choosing deeplink string name.
Since i'm having so much trouble on getting the string and sending it to the app.
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
1) it receives platform specific parameters, which can usually be interpreted by platform specific plugins
2) is there really a usage for it inside Gideros Lua environment?
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
something.com/index.php?code=some_string
That one...
If you use "code" for facebook, it would crash..
@ar2rsawseen :
Sample usage, for example in my app,
When user post a facebook dialog, other user who click on that post on iOS device would open the app, and get that some_string passed to the app.
As for mine, i just use it to obtain Custom Map Code.
facebook://ozapps
gideros://compile_build
http://
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
Unfortunately I could not test it, as I'm already away from my Mac.
You can use it like:
Likes: OZApps
thanks for that, but that is so much more code than I use in Objective-C to handle the openURL and pass the parameter to Gideros (without a plug-in, in a bit of a round about way).
BTW, I do not have events in Lua, and love the way this one has events, OPEN_URL
It could help other developers and maybe if it was integrated into the SDK as an event, that would be so nice.
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
Tried. Works great, thanks