gpt4 book ai didi

app-store - 什么是 Apple 服务器到服务器通知的重试策略

转载 作者:行者123 更新时间:2023-12-05 03:54:59 26 4
gpt4 key购买 nike

我正在实现管理 IOS 应用程序订阅的服务器端应用程序。我正在使用 Apple Server-to-Server Notifications 在后端控制帐户状态(订阅是否有效)

文档说:

Respond to Server-to-Server Notifications Your server should send an HTTP status code to indicate whether the server-to-server notification post succeeded:

Send HTTP 200 if the post was successful. Your server is not required to return a data value.

Send HTTP 50x or 40x to have the App Store retry the notification if the post was not successful. The App Store makes several attempts to retry the notification over a period of time but eventually stops after continued failed attempts.

但不清楚在我这边出现服务器错误时苹果究竟遵循了哪种重试策略。我正在寻找以下问题的答案

  1. apple 会重试多少次?
  2. 重试之间的间隔是多少?

最佳答案

App Store 服务器通知的重试策略取决于服务器通知的版本。它重试如下:

  • For version 1 notifications, it retries three times; at 6, 24, and 48 hours after the previous attempt.
  • For version 2 notifications, it retries five times; at 1, 12, 24, 48, and 72 hours after the previous attempt.

参见 here了解详情。

关于app-store - 什么是 Apple 服务器到服务器通知的重试策略,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60553244/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com