A timestamp (as a four-byte time_t value) indicating when APNs determined that the app no longer exists on the device. This value, which is in network order, represents the seconds since 12:00 midnight on January 1, 1970 UTC.
Token length
The length of the device token as a two-byte integer value in network order.
Device token
The device token in binary format.
This length is for token in bytes, and 1 byte will comes 2 length of string in php, so this length should be multiply by 2.
This pull request is about to fix wrong feedback token length.
In real sandbox environment I get 32bit token from
feedback()
.So I add
var_dump()
inZendService\Apple\Apns\Response\Feedback
.And I get this response.
After I read the apple apns document, I found this.
This length is for token in bytes, and 1 byte will comes 2 length of string in php, so this length should be multiply by 2.