沙箱环境时主体缺少参数

Missing params from body when sandbox environment

我们正在实施推送服务器通知,在我们的测试期间,我们从 apple json 中获取的参数太少,这使得无法识别订阅。

Table 6.3 在他们的 documentation 中声称正文包含 original_transaction_idlatest_receiptlatest_receipt_info

中的几个参数

虽然,我们只得到 INTERACTIVE_RENEWAL 类型:

{
"auto_renew_product_id": "agreement_chat_MO_auto_renewal",
"password": "CORRECT_PASSWORD_HERE",
"environment": "Sandbox",
"auto_renew_status": "false",
"notification_type": "INTERACTIVE_RENEWAL"
}

并为 DID_CHANGE_RENEWAL_STATUS 输入:

{
"auto_renew_status_change_date": "2019-06-03 08:13:11 Etc/GMT",
"environment": "Sandbox",
"auto_renew_status": "false",
"auto_renew_status_change_date_pst": "2019-06-03 01:13:11 America/Los_Angeles",
"password": "CORRECT_PASSWORD_HERE",
"auto_renew_status_change_date_ms": "1559549591000",
"auto_renew_product_id": "the_product_id",
"notification_type": "DID_CHANGE_RENEWAL_STATUS"
}

鉴于这些参数,不可能找到通知所指向的订阅。

我是不是漏掉了什么?沙盒是否以任何方式损坏?

你不是唯一一个... https://forums.developer.apple.com/thread/116996

它在 Sandbox 中已经坏了好几天了。我们检查了我们的日志,他们在生产中出现这个错误已有一段时间了。现在在生产中似乎已修复,但问题在 Sandbox 中仍然存在。