What to do with HTTP 412 (Precondition Failed) - The device is inactive

I get this error when I try to send a push notification to a Nokia WP7 device. Other push URIs do not return this error, but with this, each attempt failed, even when the phone is β€œawake” and with Wi-Fi turned on.

Checking the MSDN docs, I came to the following:

http://msdn.microsoft.com/en-us/library/ff941100(v=vs.92).aspx

The device is inactive. The web service may try to send the request once an hour maximum after receiving this error. If the web service violates a maximum of one retry per hour, the Push Notification Service unregisters or permanently blocks the web service.

This did not help, since all I can do is read "try again in an hour" and try sending it again. I suspect that this could be due to a device in which it never had a SIM card, and therefore it could not β€œactivate”, but if it is true, why did MSPN return the URI for the application for the application?

Thanks in advance

+4
source share
1 answer

I noticed that Microsoft often generates a new ChannelUri for the device (in the last 2 days I have a 5-channel uris for my two devices)

Perhaps a new channel has been created for the device.

+1
source

Source: https://habr.com/ru/post/1403071/


All Articles