【发布时间】:2018-02-23 09:40:04
【问题描述】:
状态更新通知,statusUpdateNotification
我在 iTunes 帐户中的 APP 中设置订阅状态 URL,例如 https://www.xxxxxx.xx/iospushnotification.php
我也成功测试了nscurl --ats-diagnostics https://www.xxxxxx.xx/iospushnotification.php
我还在 iospushnotification.php 文件中实现了 php 代码来获取 JSON 响应
我成功购买了自动续订订阅沙盒,但我没有收到任何状态更新通知我从苹果服务器到我的服务器收到空白 [] JSON 响应。
【问题讨论】:
-
2 年后,我也遇到了这个问题。我想你没有找到解决办法?
-
嗨@Ankur 你得到解决方案了吗?
-
@Niraj 实际上 PHP 开发人员只得到了最新数据的响应
-
$data = array( 'password' => $password, // IAP 服务器上的密钥 'receipt-data' => $receipt_data, // 'latest_receipt', base64 string 'exclude-old -交易' => 真); $post = json_encode($data); $ch = curl_init() ; curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_POST,1); curl_setopt($ch,CURLOPT_POSTFIELDS,$post); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE) ;
-
好的,感谢重播,我会尝试使用新的苹果帐户,然后它会工作吗?
标签: ios in-app-purchase