获得空白响应订阅状态URL IAP,statusUpdateNotification

问题描述:

状态更新通知,statusUpdateNotification获得空白响应订阅状态URL IAP,statusUpdateNotification

我设定的订阅状态URL在我的iTunes帐户APP像https://www.xxxxxx.xx/iospushnotification.php

我也成功地测试nscurl --ats诊断https://www.xxxxxx.xx/iospushnotification.php

我iospushnotification.php文件还实现PHP代码来获得JSON响应

我已成功购买自动续订订阅沙盒,但我没有得到任何状态更新通知我得到空白[]从苹果服务器到我的服务器的JSON响应。

https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/StoreKitGuide/Chapters/Subscriptions.html#//apple_ref/doc/uid/TP40008267-CH7-SW6

+0

2年后,我也有这个问题。我不认为你找到了解决办法? – Ben

如果还有人在乎2年后,我发现了一个解决方案,假设你使用PHP。

从计算器后Receive JSON POST with PHP我们需要做的是这样的:

$appleData = file_get_contents('php://input'); 

然后try从那里json_decode($appleData)

(我从来没有做什么太奇怪了之前得到POST数据,但我以前主要用于框架;不幸的是,我目前还没有奢侈...)