Non consumable IAP tracking.

Discussion in 'iOS Programming' started by DannyBres, Jan 12, 2015.

  1. DannyBres macrumors 65816

    DannyBres

    Joined:
    Oct 30, 2007
    Location:
    UK
    #1
    I am considering adding an IAP for premium features on my next app. How id best to track whether a user has purchased the IAP? Is just saving it as a BOOL in NSUserDefaults sensible?
     
  2. AppSwage, Jan 19, 2015
    Last edited: Jan 20, 2015

    AppSwage macrumors newbie

    Joined:
    Jan 18, 2015
    #2
    I do not recommend NSUserDefaults for anything that requires some security. iAP is an area that I feel should be better secured to ensure someone cannot get access to it for free. The way I like to handle this is with Apple's encrypted keychain which you can also extend to the cloud. By doing the latter it allows the user to use that iAP on other devices they own (with the same cloud account) or when they upgrade devices. I think that is good from a customer service perspective. However, even if you keep it local it will be better protected than NSUserDefaults which is really better for holding things like setup/preference data.
     
  3. DannyBres thread starter macrumors 65816

    DannyBres

    Joined:
    Oct 30, 2007
    Location:
    UK

Share This Page