Hey there. I’m trying to to add a local notification in my project but I don’t know what I need to put into “lauchArg”… someone can give me an example for what should I put in this variable?
local launchArgs = ...
local function notificationListener( event )
-- display alert that shows the event name and type:
native.showAlert( event.name, event.type, { "OK" } )
-- do something here
end
-- Listen for notification events:
Runtime:addEventListener( "notification", notificationListener )
if launchArgs and launchArgs.notification then
-- call the event listener manually:
notificationListener( launchArgs.notification )
end
and can I change this launchArg after ?
Reeealy need this information, so please help me
Thanks [import]uid: 23063 topic_id: 17803 reply_id: 317803[/import]
