Secure way to unlock full version via In-App Purchase

后端 未结 4 1471
情话喂你
情话喂你 2021-01-01 00:04

I\'m planning to use In-App Purchases to unlock some features in my app. What is the most secure way to do this?

Originally I planned to set a Bool in the NSUs

4条回答
  •  离开以前
    2021-01-01 00:58

    Security through Obfuscation is the simplest way to go here (e.g. don't name your var "isPro" and perhaps don't have it's value be a simple BOOL but instead have it be some "magic" integer. Not foolproof but another speed bump to cracking.

    As an alternative to using NSUserDefaults you could save a file to the app filesystem and then check it's contents at app launch.

    Not sure it is worth the time and trouble though.

提交回复
热议问题