Hi everybody,
Is there a way to access to custom property on a notification event ?
Example described here : http://developer.apple.com/library/mac/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ApplePushService/ApplePushService.html
this is a “classic” notification :
{
"aps" : { "alert" : "Message received from Bob" },
"acme2" : ["bang", "whiz"]
}
How can i access to “acme2” property ?
I’m supposing that corona only takes care of “aps” property and ignore everything else (even inside aps)
[lua]…
local function onNotification( event )
if event.type == “remote” then
native.showAlert( “remote”, json.encode( event ), { “OK” } )
end
end
…[/lua]
returns only :{ “alert”: “Message received from Bob”}
Thanks !
[import]uid: 3638 topic_id: 21006 reply_id: 321006[/import]
