web services - Why last updated(null) -
i created pass , can register device server. updated pass changing contents , insert new row of pass pass table. why in console, last updated (null) ? console:
apr 6 10:30:29 cammobs-ipod4 passd[21] <warning>: serial #s task (for device b6511c0dd47d04da449ce427b27fea74, pass type pass.cam-mob.passbookpasstest, last updated (null); with web service url http://192.168.1.202:8888/passeswebserver/) got response code 200
whenever .pkpass bundle accepted or replaced in device's passbook library, passbook tag pass last updated attribute.
this attribute typically set last-modified header webserver sends first time pass downloaded, , web service sends every response "get latest version of pass" response.
passbook polls web service using "getting serial numbers passes associated device" method serialnumbers, using devicelibraryidentifier , passtypeidentifier criteria.
the "getting serial numbers passes associated device" response should contain tag lastupdated, indicating when results of query last changed (i.e. when last time pass using passtypeidentifier registered devicelibraryidentifier last updated).
however, first time passbook sends "getting serial numbers passes associated device", not have received lastupdated tag why showing null in console log. also, sending lastupdated tag optional, if not present, or if not sent correctly, see last updated (null) request.
you free use whatever lastupdated tag. simplest solution implement unix timestamp there no need mess around date formats.
Comments
Post a Comment