Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Windows Phone Target Header Problem #72

omerkirk opened this Issue Dec 21, 2012 · 1 comment


None yet
2 participants

omerkirk commented Dec 21, 2012


Windows Phone notifications include a http header called "X-WindowsPhone-Target". This header's value should be "toast" for toast notifications and "token" for tile notifications. Currently these values are "toast" and "Tile" respectively. Apparently if an incorrect value for this header is sent to MPNS, service expires the device's subscription, returning "Expired" as subscription status response header.

More details about the correct header values can be found here: http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202945(v=vs.105).aspx

I've changed the source code to change the header for tile notifications however I am not familiar with submitting fixes. I've also added the SubscriptionExpired event to Windows Phone similar to AndoridGcm, in the case of SubscriptionExpired header.

Great job on a very functional library by the way, thank you. Please let me know if I can contribute in any way.

@Redth Redth closed this in 6f85ca8 Dec 27, 2012


Redth commented Dec 27, 2012

Thanks, I've fixed the target header bug, also now the proper subscription expired event gets fired for windows phone...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment