Google play Push Notification - How to send Custom Parameters

I am sending push notification from my server using php.
 

$post\_values = array     (         'registration\_ids' =\> array("MY\_TOKEN\_HERE",         'data' =\> array("alert" =\> "hi"),         'delay\_while\_idle' =\> true,     );  

When I use this code, I get a push with the message “Hi”.
How can I send some custom parameters here? 
The Corona docs for Push Notifications specifies how to send custom parameters for local notifications. How to do the same for push notifications?

This link :http://developer.android.com/google/gcm/server.html specifies all possible paramters for the message payload. But it makes no mention of custom paramters. 
How can this be done?

Have a look at sample project “Notifications/GooglePushNotifications” that is included with the Corona Simulator.  That sample app pushes a notification to itself with custom data via GCM (Google Cloud Messaging), which is the Google’s push notification service on Android.  The onTap() Lua function within the “main.lua” file shows you how to format the JSON packet and the Lua comments describes what Corona will do with each field.

Ah thanks! 
Works now!  :slight_smile:

Have a look at sample project “Notifications/GooglePushNotifications” that is included with the Corona Simulator.  That sample app pushes a notification to itself with custom data via GCM (Google Cloud Messaging), which is the Google’s push notification service on Android.  The onTap() Lua function within the “main.lua” file shows you how to format the JSON packet and the Lua comments describes what Corona will do with each field.

Ah thanks! 
Works now!  :slight_smile: