I decided that I didn't want to bother trying to prevent piracy and did the most simple check possible, on-device, then set a boolean in NSUserDefaults on purchase / purchase restore. You don't need any external libraries for this basic case, StoreKit gives you enough. This case should be pretty easy, you can just copy/paste code. The hardest part of this is remember to check all the right boxes on iTunesConnect so the IAP actually goes live.
-- It only gets complex when you try to incorporate 3rd-party authentication, where there's communication between iTunes / the App / Your servers. In that case, all the custom JSON parsing / encryption / etc. comes into play. I don't think you need it if you're validating purchases on the phone only.
On Mon, Feb 24, 2014 at 11:49 AM, Kevin Barrett <kevboh@gmail.com> wrote:
Also interested in this.On February 24, 2014 at 11:48:30 AM, Jon August (jonaugust@gmail.com) wrote:
Hey,
I'm wondering if any of you have experience implementing in-app purchase for a non-consumable. I have several questions about the mechanics - like:
- How did you handle the differences in the receipt process so you can support iOS 6 and 7?
- Did you use a third party library to handle the decryption, signature verification, and JSON parsing?
- Local or Server validation? Your server or direct to Apple?
- How often do you check the receipt? Every time you launch? Once?
- How did you store the "success" result in a way that prevents tampering?
Thanks for your insight.
-Jon
--
You received this message because you are subscribed to the Google Groups "NSCoderNightDC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nscodernightdc+unsubscribe@googlegroups.com.
To post to this group, send email to nscodernightdc@googlegroups.com.
Visit this group at http://groups.google.com/group/nscodernightdc.
For more options, visit https://groups.google.com/groups/opt_out.--
You received this message because you are subscribed to the Google Groups "NSCoderNightDC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nscodernightdc+unsubscribe@googlegroups.com.
To post to this group, send email to nscodernightdc@googlegroups.com.
Visit this group at http://groups.google.com/group/nscodernightdc.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "NSCoderNightDC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nscodernightdc+unsubscribe@googlegroups.com.
To post to this group, send email to nscodernightdc@googlegroups.com.
Visit this group at http://groups.google.com/group/nscodernightdc.
For more options, visit https://groups.google.com/groups/opt_out.
0 comments:
Post a Comment