That worked! Well, Not the php function you referenced because you need an
HTTP extension installed on the server to use that function. Instead we did
this:
parse_str(file_get_contents('php://input'), $_PUT);
foreach ($_PUT as $key => $value) {
$allVals.= $key."=>".$value.", ";
}
$allVals="requestBody=>".$allVals;
print($allVals);
And it printed :
requestBody=>{"alias":"test","deviceToken":"APA91bEHALC9aRDBlJH-EeOHXgmxL_R750ur_6xoYng7FPlEJazeJ2F5DNWhlbwzzjipANhh3luFCVA07NtAi14zRxLO-n_GJ2xbicTve056NPkmAOGttNncXbG8A6_4PciRjsdjWoXx","deviceType":"ANDROID","operatingSystem":"android","osVersion":"5_0_2"}
So now we can send that to Aerogear. Thanks for your help Sebi!
--
View this message in context:
http://aerogear-dev.1069024.n5.nabble.com/Android-Background-push-notific...
Sent from the aerogear-dev mailing list archive at
Nabble.com.