Launch Args :
To further the discussion regarding launch args I thought I would post the ruby on rails code I use to send a Push through google. What am I doing wrong??? I get the notification but can’t seem to read the custom data.
def send_Note(deviceid,message,extra)
url="[url=“https://android.googleapis.com/gcm/send”]https://android.googleapis.com/gcm/send[/url]"
uri= URI.parse (url)
https= Net::HTTP.new(uri.host,uri.port)
https.use_ssl=true
https.verify_mode= OpenSSL::SSL::VERIFY_NONE
request=Net::HTTP::Post.new(uri.path, initheader = {‘Content-Type’=>‘application/json’, ‘authorization’ => ‘key=MYKEY’})
reqbody=
{
“registration_ids”=> [deviceid],
“data”=> {
“alert”=> [message],
“sound”=> “notification.wav”,
“custom”=> {
“messageid” => [extra]
} } }
request.body= reqbody.to_json
resp = https.request(request)
end
PLEASE HELP
Chris