[aerogear-dev] Sndroid Background push notifications not working
delalis
delalis at gmail.com
Thu Jun 4 10:15:05 EDT 2015
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-notifications-not-working-tp11716p11757.html
Sent from the aerogear-dev mailing list archive at Nabble.com.
More information about the aerogear-dev
mailing list