Our iOS app supports auto-renewable subscriptions and we'd like to implement the handling of statusUpdateNotifications sent by the Apple servers.
So we put a URL in our app's metadata under "Subscription Status URL"
The good news is that this url *is* called by Apple, but we don't seem to be able to access any payload.
Our php script at the moment:
$jsonStr = file_get_contents('php://input');
file_put_contents( 'debugphpinput' . time() . '.log', $jsonStr);
But the files it creates when called by Apple's servers are empty.
Same if try to access $POST, no nothing...
We are aware that our server must support TLSv1.2, and this is the case, we checked that with nsurl as recommended by the documentation.
We spent quite a bit of time on this one, and ran out of ideas as to what might be wrong.
Any ideas anyone ? Thanks
Laurent Humbert
PS: We did contact DTS but they said it was a server-side problem and couldn't help.