I am working on the code below. Which is to detect if application is start from clicking on notification or not. So far, the notificationPage is showing properly. But it is not received the value from params = { var1 = event.alert}. What do i do wrong?
local function notificationListener( event ) native.showAlert( "Message", event.alert, { "OK" }) if ( launchArgs and launchArgs.notification ) then print( "event via launchArgs" ) local function gaya( ) local option = { effect = "fade", time = 300, params = { var1 = event.alert} } storyboard.gotoScene( "notificationPage", option ) end timer.performWithDelay( 1000, gaya ) else print("event NOT via launchArgs") end end -- Listen for notification events: Runtime:addEventListener( "notification", notificationListener )