Hey all, so I’m working on my first freemium app and was wondering if anyone could share their basic code logic for setting one up. For instance, when the app is first downloaded, there will be several features that are locked. If the user purchases the IAP to unlock these, should the successful purchase info somehow be stored locally in a file? That way on future launches the app doesn’t have to keep checking the store and instead look for the info locally. My concern with checking the store each time is that it may cause delays in app startup. Obviously on the other end of the spectrum would be security.
Lastly, is it still recommended to do server-side receipt verification on iOS 6+? For what it’s worth I know my app won’t be a huge hit, it’s more of niche app.
Hey JonPM - The local filesystem seems to work fine for stuff like that. That is what I am doing. I just check in a little file stored in the documents directory for what they have bought. I do this right after launch. The docs on file io are here: http://developer.coronalabs.com/content/files
From what I understand, doing store.init doesn’t automatically restore purchases. You are just setting up what callback to use when you do make purchases. You have to do a restore specificially to get the purchases sent back to you.
Hey JonPM - The local filesystem seems to work fine for stuff like that. That is what I am doing. I just check in a little file stored in the documents directory for what they have bought. I do this right after launch. The docs on file io are here: http://developer.coronalabs.com/content/files
From what I understand, doing store.init doesn’t automatically restore purchases. You are just setting up what callback to use when you do make purchases. You have to do a restore specificially to get the purchases sent back to you.