Type String Event notification Revision Release 2021.3642 Keywords notification, type
A string identifying the type of notification event:
"local"— From events created locally.
"remote"— From remote push events originating from a server.
"remoteRegistration"— Used for initializing remote push events. If successful, the event will also contain a
"token"property which contains a string needed by your push server to communicate with Apple's Push Notification server; if not, then the event will have an
-- The launch arguments provide a notification event if this app was started when the user tapped on a notification local launchArgs = ... if ( launchArgs and launchArgs.notification ) then print( launchArgs.notification.type ) print( launchArgs.notification.name ) print( launchArgs.notification.sound ) print( launchArgs.notification.alert ) print( launchArgs.notification.badge ) print( launchArgs.notification.applicationState ) end