问题描述
我打算使用应用内购买解锁我的应用中的某些功能。
最安全的方法是什么?
I'm planning to use In-App Purchases to unlock some features in my app.What is the most secure way to do this?
最初我打算在 NSUserDefaults $ c $中设置一个Bool c>:
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@isPro];
但我不确定是否有可能通过hack设置此值(因为 NSUserDefaults
是由iOS管理,而不是由应用程序直接管理),以便用户无需执行应用程序内购买即可获得完整版本。
But I'm not really sure whether there is a possibility to set this value via a "hack" (as NSUserDefaults
are managed by iOS and not directly by the app) so that the user doesn't have to perform the In-App Purchase in order to get the full version.
什么是处理此问题的最佳做法是?
What's the best practice to handle this?
推荐答案
是的,修改应用程序首选项相对容易。但它真的重要吗?我敢打赌,任何愿意破解他们的iPhone文件系统并修改配置文件以节省一两个钱的人并不是那种倾向于花钱的人,如果他们不能这样做的话。
Yes, it's relatively easy to modify application preferences. But does it really matter? I would wager that anybody who is willing to crack open their iPhone filesystem and modify config files to save a quid or two is not the type of person who would be inclined to spend the money if they were unable to do so.
这篇关于通过应用内购买解锁完整版的安全方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!