ios6 - How to send serial number of pass to device -
now in step when device generate request webserviceurl/version/devices/devicelibraryidentifier/registrations/passtypeidentifier?passesupdatedsince=tag
how server send serial of pass , send last updated/tag; need convert timestamp string lastupdated string? error console: apr 5 13:45:24 cammobs-ipod4 passd[21] <warning>: serial #s task (for device b6511c0dd47d04da449ce427b27fea74, pass type pass.cam-mob.passbookpasstest, last updated (null); web service url http://192.168.1.202:8888/passeswebserver/) encountered error: server response malformed (missing response data)
query database , identify serials (if any) match devicelibraryidentifier
, passtypeidentifier
, have changed since passesupdatedsince
tag. hold these in array.
then send array device, or send 204 response if there no serials need updating.
$serialsarray = array("abc123", "dec456"); // array should populated database. if (!empty($serials)) { echo json_encode(array('lastupdated' => (string)time(), 'serialnumbers' => $serialsarray)); } else { // no serials need updating send 204 response }
Comments
Post a Comment