Push Notification UserInfo

in Objective C exists function that receives remote notification:

  • (void)application:(UIApplication*)application didReceiveRemoteNotification:(NSDictionary*)userInfo

My userInfo has the structure:

{

   aps = {

      alert = wwwww;

      badge = 1;

   };

   id = 4;

   url = “http://www.google.ru”;

}

How i can get ‘id’ and ‘url’ values in Corona SDK

In Corona SDK i get remote notification follows:

local function notificationListener( event )

    if ( event.type == “remote” or event.type == “local” ) then

      native.showAlert( “remote”, json.encode(event), { “OK” } )

    elseif ( event.type == “remoteRegistration” ) then 

       --reg token

    end

end

Runtime:addEventListener( “notification”, notificationListener )

Line native.showAlert( “remote”, json.encode(event), { “OK” } show structure event:

{“barge”:1,“type”=“remote”,“name”=“notification”, “custom”=[],“alert”:“wwwww”,“applicationState”:“active”}

I do not receive ‘id’ and ‘url’. How can I do this? Maybe need something to use ‘custom’ field? I could remake structure userInfo coming from the server. Explain how i can use my additional information than a standard alert and badge.