When you you open an app via a URL Scheme - e.g. system.openURL(“myapp://”) - you can also include parameters e.g. system.openURL(“myapp://myapp://doca”).
This can be decoded in the app startup function …
local function onSystemEvent( event )
if event.type == “applicationOpen” and event.url then
– opened via url scheme
local launchURL = event.url
– parse launchURL here to detect parameters
elseif event.type == “applicationStart” then
elseif event.type == “applicationExit” then
elseif event.type == “applicationSuspend” then
end
end
Runtime:addEventListener( “system”, onSystemEvent )