Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does APNS Feedback service no longer exist as per new APIs?

I was going through updated official APNS documentation and it clearly says,

All developers should migrate their remote notification provider servers to the more capable and more efficient HTTP/2-based API described in APNs Provider API.

But the new APNs Provider API doesn't seem to have old APNS Feedback Service. They have changed endpoint URLs which doesn't have feedback service endpoint. Also looks the error codes are upgraded now, which includes below error code,

Unregistered - The device token is inactive for the specified topic.

So aren't we suppose to call the APNS Feedback service anymore?

My major problem is I'm using javapns api version 2.2 for iOS push notifications for which I'm not able to find any update which will help me to cope up with this new changes.

like image 474
DineshM Avatar asked Jan 06 '16 10:01

DineshM


People also ask

What is APNs feedback service?

It helps developers to improve the application's experience.

Are Apple APNs free?

Apple does not charge a separate fee for utilizing the push notification service. Your only cost is a server that will be sending the push notifications to Apple.

What protocol does APNs use?

0, HTTP/2 is the default protocol for connections to APNs. This means that all mobile device management (MDM) communication, such as remote commands, configuration profiles, applications, and push notifications, is handled by the HTTP/2 protocol.

How do I validate my APNs certificate?

How to Validate the APNS Certificate. A simple command can validate the . pfx file you have taken during the certificate creation/renewal process. This will require the same file and certificate password that was uploaded to the core server.


1 Answers

I think the new doc is clear :

There's an HTTP status code for the case that was previously reported by the Feedback Service :

410 - The device token is no longer active for the topic.

In addition, there's a JSON data key named timestamp in the response body :

timestamp

If the value in the :status header is 410, the value of this key is the last time at which APNs confirmed that the device token was no longer valid for the topic.

Stop pushing notifications until the device registers a token with a later timestamp with your provider.

Therefore, the HTTP response in the new API covers the functionality that was previously covered by the Feedback Service. Since the Feedback Service is not mentioned in the new doc, we can safely assume that it's not part of the new API.

If you are using an old library such as javapns, which still uses the old API, I'm assuming that it still uses the Feedback Service too. The old API is likely to still be supported by Apple for a while.

like image 150
Eran Avatar answered Nov 06 '22 07:11

Eran