1
\$\begingroup\$

I am planning to publish a paid game built with Unity. After a while I will update the game as free and will start showing ads. But I do not want my first paid customers to see the ads after installing update? How can I manage this?

Game will be both on App Store and Google Play.

Thanks

\$\endgroup\$
  • 2
    \$\begingroup\$ The people who paid will feel cheated when it goes free. \$\endgroup\$ – Almo Jul 8 '15 at 20:30
  • \$\begingroup\$ I'm guessing one approach would be however people do it to remove ads by purchasing an upgrade in the game. Maybe lookup tutorials about that \$\endgroup\$ – jhocking Jul 8 '15 at 20:39
  • 1
    \$\begingroup\$ Or... start by having a free (with ads) and a pro (without ads). Or if the players need to be connected, check on the server if they bought the pro version and disable the ad when the app launches... \$\endgroup\$ – Vaillancourt Jul 9 '15 at 2:42
  • \$\begingroup\$ Only way I can think of saving some information post update is to have a server side component. Barring that, @AlexandreVaillancourt's idea is the simplest option. <Game Name> Free version, <Game Name> premium ad free version. \$\endgroup\$ – SanSolo Jul 13 '15 at 17:54
1
\$\begingroup\$

The simplest solution: you can store the initial version number of the game at installation in PlayerPrefs. Then when you add the ads, you can have a check of the minimum version number versus the initial version number. Or you can record in PlayerPrefs whether it is a paid version or not on the initial launch again.

That leaves some problems: what if someone uninstall the paid version and reinstalls the free version? You might need a way to grant them the "no-ads" flags remotely. I use in-game gift codes for that, but it requires a backend of some sort (using parse.com).

It is also susceptible to hacking of the local data, but if someone is willing to go to that length, it doesn't matter what you do - so don't worry about that.

| improve this answer | |
\$\endgroup\$
  • \$\begingroup\$ The idea is good can work with file serialization instead of playerprefs. Serialized files are secure. Instead of version number, he could use some other identifier since if game is updated, it's version number will also change. \$\endgroup\$ – SanSolo Jul 13 '15 at 17:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.