问题
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