即使已卸载,如何存储iPhone应用程序的数据 [英] how to store iphone app's data even if it is uninstalled

查看:59
本文介绍了即使已卸载,如何存储iPhone应用程序的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,其中包含一些易耗品,使用后,用户可以进行应用内购买来获取更多.

I have an app that has some consumable items, after they are used, user can do in-app purchase to get more.

如何避免用户取消安装该应用并重新安装,以免他不必付费?

How can avoid the user to unistall the app and reinstall so he doesn't have to pay?

我能否保存一些将要发送给remian的数据,而不论他是否毫不留情?

Can i save some data that is going to remian regardless of if he unistalls it?

我应该在数据库中存储应用安装的每个设备的信息吗?启动后是否检查?

Should i have the app store in a database the udid of each device that it is installed in and when launched check that?

谢谢!

推荐答案

我应该将应用商店存储在 数据库每个设备的被调查对象 它安装在启动时 检查吗?

Should i have the app store in a database the udid of each device that it is installed in and when launched check that?

类似的事情-卸载后,您无法在设备上保留数据.因此,您要维护的数据必须在服务器上(或类似的东西).

Something like that - you can't persist data on the device after an uninstall. So the data you want to maintain needs to be on a server (or something similar).

可能您有一个远程存储,其中包含一个UUID表以及他们购买的所有IAPed物品的列表.当设备执行者使用该应用程序时,请致电服务器以查看是否需要拉下这些项目.

Possibly you have a remote store, that has a table of UUIDs and a list of all the IAPed items they've bought. When the device exec's the application, make a call to the server to see if you need to pull down the items.

您可以通过稍加切换来使其变得更好,因此,在第一次运行时您可以拨打电话,而在随后的所有运行中都不需要(将比特位关闭).这样一来,您不必在每次应用启动时都拨打电话.

You can make it better by having a bit you toggle, so on first run you make the call, on all subsequent runs you don't (you toggled the bit off). That way your not making the call every app startup.

因此,在第一个电话上,您打了服务器,并枚举了客户端购买的所有IAP,然后将其下推到电话中.客户满意!

So on that first call, you hit the server and enumerate any IAPed the client has purchased, and push them down to the phone. Happy customer!

这篇关于即使已卸载,如何存储iPhone应用程序的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆