Note that there are some explanatory texts on larger screens.

plurals
  1. POPHP technique to query the APNs Feedback Server
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COToday I found that fread() won't work because APNs feedback sends garbage data until the actual feedback. This causes fread to fail, because it's reading null/empty data. As gw1921 mentions below, you must loop on feof() until strlen(fread($apns, 38)). From that point on, you'll have valid feedback. Then, unpack the data as Nick B below has suggested. (Another nasty gotcha: the uninstalled app won't generate feedback unless you have another app on the device with the same aps-environment. So you need 2 push-enabled sandbox apps on your device for the uninstalled one to populate feedback.)
      singulars
    2. COEven I have a similar code and I too get null from fread. Not sure whether my code is really working and APNS is sending out a NULL reply or just something is missing. I'm sure my connection to APNS is successful. I had installed my application on some 5-10 devices and send couple of alerts and then uninstalled the application from few and started sending the alerts again so that APNS feedback server would let us know it failed to deliver on few devices. I haven't got anything other than blank in fread() :-( If you have done something different and got it working please do let me know.
      singulars
    3. COHave you used "pushutil"? Once you figure it out, it's a faster way to check the feedback server. It's a Mac OS X utility that you compile and then run from the Unix command line. Google Erica Sadun - it's on her site under Push.
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload