4

As per this documentation

A server URL to receive update notifications (JSON object posts) for key subscription events. This is applicable only for apps containing auto-renewable subscriptions. It is recommended to use these notifications in conjunction with Receipt Validation to validate users' current subscription status and provide them with service

enter image description here

We have added the URL but while checking the server log the link is not pinged,
Q1 - Is there any additional setup I need to do to test it in the sandbox?
Q2 - Is it only work for real purchase made by the user on production?
Q3 - Should I need to push an update to app store to make the Subscription URL work?

Any suggestion will be helpfull

Eric Aya
  • 69,473
  • 35
  • 181
  • 253
Abdul Karim
  • 4,359
  • 1
  • 40
  • 55

1 Answers1

5

1) Have you setup the required ATS protocols on your server? https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW57

2) It looks like it works for both sandbox and production according to the possible responses from their documentation: https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/StoreKitGuide/Chapters/Subscriptions.html#//apple_ref/doc/uid/TP40008267-CH7-SW13

3) You shouldn't need to push an update to app store for it work.

  • Sir have you tested it? – Abdul Karim Jul 20 '17 at 04:19
  • It seems to work for us, but we have a large amount notifications arriving multiple times with 24 hours interval. – silentser Aug 09 '17 at 15:08
  • @silentser https://stackoverflow.com/questions/46218509/get-blank-response-subscription-status-url-iap-from-apple-server-status-update Above is my question. 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 have set Subscription Status URL, implement php code to get JSOB but I can not get response, I get response like [ ] \nArray\n – Ankur Patel Sep 14 '17 at 13:18
  • @silentser can you tell me is there any extra code we need on Server Side or any setting? can you tell me is there any extra code we need on out App Side or any setting? in Appside I set App Transport Security Settings -> Allow Arbitrary Loads = true plz help me – Ankur Patel Sep 14 '17 at 13:22
  • @silentser I tested all things in developer profile is it necessary to test in distribution profile? – Ankur Patel Sep 14 '17 at 13:23
  • 1
    @AnkurPatel Did you succeed? Did you tried with distribution profile ? – cmii Nov 17 '17 at 10:29
  • No I did not try. Did you try? I will try with sandbox tester with distribution profile. – Ankur Patel Nov 17 '17 at 11:55