0

I'm testing auto-renewable subscription in Newsstand app, and subscription works well, I have purchase and expiration date. But I don't understand hot to get access to in-app purchases hosted content or how to buy issue without charging payment? Should I copy my issues to my own server?

I read a lot of tutorials and In-App Purchase Programming Guide and I can't figure out. Any ideas?

hpique
  • 119,096
  • 131
  • 338
  • 476
ChikabuZ
  • 10,031
  • 5
  • 63
  • 86
  • Please elaborate this point "But I don't understand hot to get access to in-app purchases hosted content or how to buy issue without charging payment?" in deep – Bhavesh Lathigara Sep 18 '14 at 06:13
  • When I buy issue from in-app purchase I have SKPaymentTransaction and I can download issue, but when subscription is active I should have access to issue. How to download issue without my own server? – ChikabuZ Sep 18 '14 at 08:51
  • I think its Simple, just do restore purchase and you will get all your purchased issues. – Bhavesh Lathigara Sep 18 '14 at 09:17
  • For example, I purchased Issue1, then I purchased auto-renewable subscription. When I restore purchases I will get 2 SKPaymentTransaction (Issue1 and auto-renewable subscription), I don't get SKPaymentTransaction for Issue2. – ChikabuZ Sep 18 '14 at 09:31
  • You purchased Issue1 and subscription so there are only two payment transactions that is fine. So how can you get Issue2 that you never purchased? of course you will only get those two payment transaction only. – Bhavesh Lathigara Sep 18 '14 at 10:19
  • Yes, Issue2 should be available because subscription is active. – ChikabuZ Sep 18 '14 at 14:56
  • Yes Then you maintain your server side called API (web service). After successfully purchased subscription, you need to call web service and maintain the database that user has already purchase these these issues. So when user click on Restore purchase, after successfully restore purchased again call your web service to know how many issues are purchased already. That's it. – Bhavesh Lathigara Sep 19 '14 at 07:00
  • if you satisfied with my comments then let me know then I write this comment in answer so you will may accept it. thanks – Bhavesh Lathigara Sep 20 '14 at 05:59
  • I think that for now it is not impossible, because when my issues will be on my server it's no sense to duplicate it on apple servers. Maybe in future it will be available. – ChikabuZ Sep 20 '14 at 12:41
  • so can I give you answer properly as my last comment? so I write my answer and you will may accept it so other Questioner also see this question and answer. – Bhavesh Lathigara Sep 22 '14 at 07:33

0 Answers0