Does the new command 2 binary format work with Apple Push Notification Service? I receive an invalid response status code of 128.

Does the new command 2 binary format work with Apple Push Notification Service? I am sending 2 messages with the same payload to 2 different devices. None of the messages display on either of the devices. It seems that at least 3 should have been displayed. For my first device, I received a response with an invalid status code of 128 and the message identifier is 2 indicating that the first message was OK. However no message was displayed on the phone. For the second device, I did not receive any error response, but no message was displayed on the device.
Does ANS perform any validation on the message identifier? The Local and Push Notification Programmin Guide says the message identifier is:
An arbitrary, opaque value that identifies this notification. This identifier is used for reporting errors to your server.
I know that the device tokens are valid because the same tokens work when I use the legacy basic or enhanced formats. The phones display the messages correctly when I send to ANS using the old ANS message format.
Here is the data and the response:
Sent to ANS: 2 0 0 0 158 1 0 32 120 107 166 143 171 157 143 169 70 135 12 135 246 142 64 224 244 44 116 4 154 65 115 192 206 28 189 56 174 0 172 16 2 0 23 123 34 97 112 115 34 58 123 34 97 108 101 114 116 34 58 34 65 66 67 34 125 125 3 0 4 0 0 0 2 4 0 4 83 7 119 141 5 0 1 5 1 0 32 120 107 166 143 171 157 143 169 70 135 12 135 246 142 64 224 244 44 116 4 154 65 115 192 206 28 189 56 174 0 172 16 2 0 23 123 34 97 112 115 34 58 123 34 97 108 101 114 116 34 58 34 65 66 67 34 125 125 3 0 4 0 0 0 3 4 0 4 83 7 119 141 5 0 1 5
ANS returned an error: 8 128 0 0 0 2
Sent to ANS: 2 0 0 0 158 1 0 32 4 239 182 26 13 237 170 136 41 243 181 57 120 208 135 19 101 102 212 70 55 244 251 255 160 125 82 9 10 143 72 17 2 0 23 123 34 97 112 115 34 58 123 34 97 108 101 114 116 34 58 34 65 66 67 34 125 125 3 0 4 0 0 0 5 4 0 4 83 7 119 147 5 0 1 5 1 0 32 4 239 182 26 13 237 170 136 41 243 181 57 120 208 135 19 101 102 212 70 55 244 251 255 160 125 82 9 10 143 72 17 2 0 23 123 34 97 112 115 34 58 123 34 97 108 101 114 116 34 58 34 65 66 67 34 125 125 3 0 4 0 0 0 6 4 0 4 83 7 119 147 5 0 1 5
ANS did not return a response.

Hello, can you please help me ?
You specified sample payload here:
TerrellFromLockhart wrote:
I finally got this to work. The picture in the Programming Guide is very confusing. The solution was to prefix every message's frame data with command 2 and that messsage's frame data length. Here is a sample:
ANS frame: 2 0 0 0 77 1 0 32 120 107 166 143 171 157 143 169 70 135 12 135 246 142 64 224 244 44 116 4 154 65 115 192 206 28 189 56 174 0 172 16 2 0 21 123 34 97 112 115 34 58 123 34 97 108 101 114 116 34 58 34 63 34 125 125 3 0 4 0 0 0 2 4 0 4 83 7 199 195 5 0 1 10 2 0 0 0 77 1 0 32 120 107 166 143 171 157 143 169 70 135 12 135 246 142 64 224 244 44 116 4 154 65 115 192 206 28 189 56 174 0 172 16 2 0 21 123 34 97 112 115 34 58 123 34 97 108 101 114 116 34 58 34 63 34 125 125 3 0 4 0 0 0 3 4 0 4 83 7 199 195 5 0 1 10 2 0 0 0 77 1 0 32 120 107 166 143 171 157 143 169 70 135 12 135 246 142 64 224 244 44 116 4 154 65 115 192 206 28 189 56 174 0 172 16 2 0 21 123 34 97 112 115 34 58 123 34 97 108 101 114 116 34 58 34 63 34 125 125 3 0 4 0 0 0 4 4 0 4 83 7 199 195 5 0 1 10
About to read response at Thu Feb 20 15:40:20 CST 2014
SocketTimeoutException
2 - is clearly command
0 0 0 77 - frame length
1 - item Id
what's 0 32 ? According to this page https://developer.apple.com/library/ios/documentation/NetworkingInternet/Concept ual/RemoteNotificationsPG/Chapters/Commu…
Item id  should be followed by item length. But item length is obviously greater than 32 because device token's length is 32. Can you please explain why 0 32 were used? and do you have any insight on item id meaning ?

Similar Messages

  • Does the new version of lightroom work with an old CS5 photoshop?

    Does the new version of Lightroom work with an old CS5 photoshop?

    Yes - they will work together.
    However, the Camera Raw versions will not match - meaning you may have to render your file into a tiff to bake-in your LR Settings before passing the file to PS CS5,

  • HOW DOES THE NEW MBOX 2 MINI WORK WITH THE MAC MINI?

    I have a old original Mac mini 1.25GHz with 1 GB SDRAM - 40GB Ultra ATA drive, 4x SuperDrive (DVD±RW/CD-RW) OS 10.3
    I also have just added the new MAC MINI 1.66 CTO OS 10.4
    with the following configuration:
    * Processor 065-6673 1.66GHz Intel Core Duo
    * Memory 065-6676 1GB 667 DDR2 SDRAM-2x512
    * Hard Drive 065-6750 120GB Serial ATA drive
    * Optical Drive 065-6679 Combo Drive
    In addition, I have a MicroNet 150 GB external hard drive.
    The 3 are linked together so that the icons for the MircroNet and the old Mac mini are shown on the New Mac mini desktop.
    I’ve kept the New MM as is for apps, moved most of the files and folders to the MNet, and have done a reinstall on the old MM, getting rid of almost everthing that was on it originally except the OSX and apps.
    I’m thinking about using the old MM to set up a recording studio. This would involve the new MBox 2 Mini with ProTools LE. For details, just Google it. It comes 2 ways, configured for the G4 MM or for the new Intel MM. I’d rather not clutter up the new MM with this, as sometimes the Digidesign Pro Tools apps can be a bit toxic.
    If I get the MBox 2 Mini and run it on the old MM, will this work? Has anyone tried this? Do I have enough processing power and speed, ram and hard drive space?
    Thanks!
    Larry Miller
    Cambridge MA
    MAC MINI 1.66 Intel Core Duo, Mac mini 1.25GHz MicroNet 150 GB external hard drive.   Mac OS X (10.4.8)  

    Hi Larry,
    I just purchased a Mbox 2 Mini. I am running it flawlessly with my Core Duo 1.66Ghz Mac mini w/2GB RAM.
    I have not seen the two versions for Intel and PPC Macs as you described. Digidesign only produces one box...compatible with Mac or PC.
    The Digidesign site states that the Mbox 2 Mini is compatible with your 1.25GHz mini, but Pro Tools LE 7.3.x requires Mac OS X Tiger 10.4.x, not Panther 10.3.x.
    You would get far better perfomance using the Intel mini over the PPC. And, you would get better perfomance by maxing the RAM out as well.
    C

  • Does the new Macbook Pro still work with HDMI input?

    Im wondering that ever since that new thunderbolt port has come out on the newest macbook, would connecting an HDMI adapter in the port still work for the newest model?

    For HDMI output from the MBP to a monitor or TV, yes. For HDMI input from another device into the MBP, I'm not sure. That certainly wasn't possible before Thunderbolt, and I don't know whether or not Thunderbolt makes it possible now.

  • How does the new OS X Yosemite work with  the  sera to dj program? has anyone  encountered any glitches or  errors since the update?

    I am a DJ using Serato DJ, and before  I Update to this  new OS, I was wondering has anyone here noticed any  errors or  glitches since  upgrading?.  are there any lil things  i should know as far as compatibility to Serato?  thanks for  any help offered in advance.

    Serato Live or Serato DJ
    Forget that, I see it's DJ.
    Don't upgrade (unless you have a spare Mac to test with) wait until it's been out for a while.

  • The "new" hotmail no longer works with safari, but works with firefox. Hmm.

    The "new" hotmail no longer works with safari, but works with firefox. Hmm. i find this very convenient being a microsoft product. anybody else wonder why this new version happens to not be safari compatible? does anybody know if it works on the PC version of safari? if not, i find this to be a blatant move on microsofts part to bias the safari browser (especially since its basicly new on the window platform). forcing safari/hotmail users to "have" to use another browser to access their hotmail accounts.

    I have been successfully using Hotmail and Gmail with Safari for a long time. For roughly the past month, that relationship is rocky at best. At times, one of the following actions suddenly opens Hotmail, but it is a short-lived solution:
    (a) Hotmail directly
    (b) Hotmail Home>Hotmail
    (c) Sign up to Windows Hotmail
    (d) Deletion of prescribed cookies, resetting, etc. - made no difference
    Both Firefox and Opera work fine with Hotmail - especially Opera is very fast.
    In addition, Safari and Gmail does not work with Attachments, but otherwise Gmail is OK.
    I suspect I have to wait for a Safari fix because in my case I do not wish to abandon Hotmail, and Safari is a given. I would think that Safari would want to stay competitive with the two biggies, Hotmail and Gmail, which must have large numbers of users.
    I certainly would appreciate any other suggested fixes.

  • HT4101 Does the Ipad camera connection  kit work with the Ipad 4 and if not is there an adapter?

    Does the IPad camera connection kit work with the Ipad 4 and /or is the an adapter ?

    You want the newer Lightning to USB Camera Adaptor.
    http://store.apple.com/us/product/MD821ZM/A/lightning-to-usb-camera-adapter
    The old Camera Connection Kit also works and I use it on my iPad 4, however, to use this your will need the Lightning to 30 pin adaptor.
    http://store.apple.com/us/product/MD824ZM/A/lightning-to-30-pin-adapter-02-m

  • Why does the color red change from working with images in develop to library?  The color gets lighter and nothing shows a change on histogram but visually you can see it.

    Why does the color red change from working with images in develop to library?  The color gets lighter and nothing shows a change on histogram but visually you can see it.

    That's probably a broken display profile. The conversion from Library's Adobe RGB is different than the conversion from Develop's linear ProPhoto, so if there's a problem with the display profile it can show up this way.
    Recalibrate, or if you don't have a calibrator use sRGB. If your monitor is a wide gamut model use Adobe RGB.
    Assuming Windows, change it in Control Panel > Color Management > Devices, and relaunch Lightroom so that it can pick up the new profile at startup:

  • Does the ipod nano 7th gen work with Belkin Blue tooth In car hands free? Customer support said it did when I bought it, but the box doesn't say it does and I dont want to open it in case I have to return it.

    Does the ipod nano 7th gen work with Belkin Blue tooth In car hands free? Customer support said it did when I bought it, but the box doesn't say it does and I dont want to open it in case I have to return it.

    If the Belkin supports the A2DP (Stereo Bluetooth) profile then it will work.

  • How well does the wireless "Wild Charge" pad work with the iPhone?

    how well does the wireless "Wild Charge" pad work with the iPhone?

    I have tried similar things, and no, it has not become corrupted. So it should be fine

  • Does the Pocket Projector by Brookstone work with the iphone 5?

    Does the Pocket Projector by Brookstone work with the iphone 5 ?

    I have the Brookstone DLP Pico projector. I purchased it from EBay not too long ago. It worked before with the previous version of Apples iOS. I would view netflix, youtube, and videos.. I have an iphone4.
    Now with the latest update to ios7, tried it last evening with netflix and youtube, it does not work at all! This is rediculous, restricting access to something we had access to before

  • Does the hp mini wireless mouse work with a mac?

    Does the hp mini wireless mouse work with a mac?

    The only one that will work with OSX is the one you order with the Mac Pro from Apple. The others don't have the correct firmware for OSX.
    I've also noticed that the online store lets have an option for the QuadroFX 5800 to purchase with a Mac Pro
    No, it's the NVIDIA Quadro FX 5600. That is the only way to get it. NVIDIA does not sell it directly.

  • Does the Palm Pilot Modem (10201U) work with the IIIc or IIIxe?

    Does the Palm Pilot Modem (10201U) work with the IIIC or IIIxe? On the box, it just says the III.
    Thanks!
    Post relates to: Centro (Sprint)

    I believe I used the Palm Modem successfully with my IIIc.
    Updating the OS on the device to 4.1 really helped a lot!
    WyreNut
    Post relates to: Centro (AT&T)
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Why wont the new version of aperture work with Nik complete software. I uninstalled and re installed Nik and it still wont work.

    Why wont the new version of aperture work with Nik complete software. I uninstalled and re installed Nik and it still wont work.

    I believe that Nik is having trouble adhering to Apple's "identified developer" requirements.
    there is a FAQ on Nik site regarding problems with their installers.
    a guess.
    vince

  • Does the new ipad 4g gps works without cell phone signal

    does the new ipad 4g gps works without cell phone signal?

    GPS has no need of a cell phone signal or wifi. The only reason you would need a data signal is to download maps to enable the GPS to show you where you are. If you installed an app which includes the mapping, for instance TomTom, you have no need for data reception.

Maybe you are looking for

  • How can i run my java Application stand alone?

    Dear all, As the topic i want to run my application in a single file without showing the dos prompt or type in the command in dos prompt by the user...... How can i do that, since in my application , i have used so other package? In fact i just want

  • Parse *.jp2 file in photoshop cs 5

    I want to open a jpeg2000 file in photshop cs5 with extension .jp2, but I got the message ' file format module cannot parse the fie'. I just have updated my cs version.

  • Is there a way to recover deleted pictures taken with my iPhone and deleted from PhotoStream

    is there a way to recover deleted pictures taken with my iPhone and deleted from PhotoStream on the same iPhone?

  • Iphoto album

    Any suggestions - my iPhoto Album won't upload, it gets about 10% into the 'upload' stage as just crashes.  It is quite a large album - 50 pages could this be the problem, and if so what is the approximate limit for an Album

  • Oracle Active / Passive Cluster Installation

    Hi everybody, I have searched a lot about installation of Active / Passive Cluster installation in Oracle on Linux, neverthless nowehere I found it. Can anyone help me to install it or send me any documentation about it from start to end.