get Blank Response Subscription Status URL IAP from Apple server, Status Update Notifications, statusUpdateNotification

不羁岁月 提交于 2020-01-10 04:27:04

问题


Status Update Notifications, statusUpdateNotification

I set Subscription Status URL in my APP in iTunes account like https://www.xxxxxx.xx/iospushnotification.php

I also successfully tested nscurl --ats-diagnostics https://www.xxxxxx.xx/iospushnotification.php

I also implemented php code in iospushnotification.php file to get JSON response

I purchased successfully Auto renewal Subscriptions Sandbox but I did not get any Status Update Notifications I get blank [] JSON response from apple server to my server.

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


回答1:


if anyone still cares 2 years later, I found a solution, assuming you're using PHP.

from the stackoverflow post Receive JSON POST with PHP we need to do something like this:

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

then try to json_decode($appleData) from there.

(I've never had to do something so weird to get POST data before, but I've mostly used frameworks before; unfortunately, I do not currently have that luxury...)



来源:https://stackoverflow.com/questions/46218509/get-blank-response-subscription-status-url-iap-from-apple-server-status-update

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!