启用 App Store 服务器通知
设置 App Store 服务器通知对于确保数据准确性至关重要,它能让你即时接收来自 App Store 的更新,包括退款及其他事件信息。
Important
完整支持 App Store Server Notifications V2 需要 Adapty iOS SDK 2.10.0 或更高版本。
- 在 Adapty 看板中复制 URL for App Store server notification。
- 打开 App Store Connect。选择您的应用,进入 General → App Information 部分下的 App Store Server Notifications 子部分。
- 将复制的 URL for App Store server notification 粘贴到 Production Server URL 和 Sandbox Server URL 字段中。
Warning
请务必填写两个 URL 字段。若未填写 Production Server URL,Adapty 将无法获知在应用之外发生的续订、到期和退款事件。如果生产环境通知曾有一段时间缺失,请联系 support@adapty.io:Adapty 可以通过 apple_original_transaction_id 列表从 Apple 恢复缺失的历史记录,且不会产生重复数据。
保存 URL 后,Adapty 看板中的通知状态只有在 Apple 发送第一条真实通知时才会更新——即发生首个订阅事件(如购买或续订)时。Apple 的测试通知不会触发状态变更。设置完成后显示等待状态,并不代表连接存在问题。
原始事件转发
有时,您可能仍希望直接从 Apple 接收原始 S2S 事件。如需在使用 Adapty 的同时继续接收这些事件,只需将您的端点添加到 URL for forwarding raw Apple events 字段,我们会将 Apple 的原始事件原封不动地转发给您。
Warning
如果通知停止到达 Adapty,新的交易、续订和退款将不再显示。Adapty 不会发出提示——请参阅如果更新停止到达。
下一步
为以下平台配置 Adapty SDK: