I implemented IAP with SDKBOX in Android and iOS, and everything works fine (I’m developing in c++). But since some days, I’m wondering how to implement the logic of remove_ads.
I will create an icon for buy NO_ADS App Version. The objetive is that, if the player purchases it, I shouldn’t show anymore ads in the game.
So, every time I want to show a banner, I should validate it. Something like this:
CCLOG("Dont show ads");
The question is, how can I do the validation?
The most simple implementation is, if the player purchases NO_ADS version, in the listener
onSuccess I could edit a flag in SQLite, and always validate the flag in SQLite. But it isn’t secure, because SQLite is easy to hack. I could encrypt the data inside the table, maybe is more “secure”, but it’s still insecure.
I would like to ask to Google / Apple if the item has been purchased and receive true or false. I think this is the most secure method, because I don’t save anything inside the device.
How can I do it in SDKBOX? @yinjimmy @nite ? Someone?