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?
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?
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.