根据新的 API,APNS 反馈服务是否不再存在?

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

我正在浏览更新后的 official APNS documentation ,上面清楚地写着,

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.

但是新的 APNs 提供商 API 似乎没有旧的 APNS 反馈服务。他们更改了没有反馈服务端点的端点 URL。另外看起来错误代码现在已升级,其中包括以下错误代码,

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

那么我们是不是应该再调用 APNS 反馈服务了?

我的主要问题是我正在使用 javapns api 版本 2.2 用于 iOS 推送通知,但我找不到任何更新来帮助我应对这个新问题变化。

我认为新文档很清楚:

反馈服务之前报告的案例有一个 HTTP 状态代码:

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

此外,响应正文中有一个名为 timestamp 的 JSON 数据键:

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.

因此,新 API 中的 HTTP 响应涵盖了以前由反馈服务涵盖的功能。由于新文档中未提及反馈服务,我们可以放心地假设它不是新文档的一部分 API.

如果您使用的是旧库,例如 javapns,它仍然使用旧的 API,我假设它仍然使用反馈服务。旧的API很可能还会得到Apple一段时间的支持。