iPad/iPhone 应用程序开发 - 我应该将用户数据存储在设备的磁盘和数据库上吗?
我是 iPad/iPhone 应用程序/游戏开发的新手。
我正在开发一个游戏。游戏将需要用户的库存,例如当前穿着,他/她购买了哪些物品。我已经阅读了 iPad/iPhone 的核心数据和 sqlite3。这是我的问题:
core data(使用sqlite3)只能在手机上存储数据吗?
我是否需要存储在网络数据库中(可能类似于:obj c -> php -> 数据库 -> obj c)
我问第二个问题的原因是,我下载并安装了一些iPad游戏,我玩到一定程度,购买了一些物品。然后,我从 iPad 上卸载/删除游戏,然后再次重新安装游戏。当我再次玩游戏时,游戏会识别我的身份,它会识别我的级别,我购买的物品。这让我想到,它可以存储在开发人员数据库的某个位置。我错了吗?
- 最佳实践是什么?将数据存储在手机上(使用核心数据)、存储在在线数据库上(mysql 通过 php)还是存储在两个位置?请指教。
谢谢。
I am new to iPad/iPhone apps/games development.
I am developing a game. The game will need to user's inventory like the current wear, what items have s/he bought. I have read through the core data and sqlite3 for iPad/iPhone. Here is my questions:
Is core data(using sqlite3) can only store data on the phone only?
Do I need to store in a web database(probably like: obj c -> php -> database -> obj c)
The reason I asked the second question is, I downloaded and installed some iPad games, I play it until certain level, purchase some items. Then, I uninstall/remove the game from my iPad, and the I re-install the game again. When I play again the game, the game recognize my identity, it recognize what level I was, what items I bough. And this make me though that, it could be store somewhere on the developer's database. Am I wrong?
- Whats the best practices? Store data on phone (using core data), store on online database (mysql through php) or store on both location? Please advise.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有一个程序可以恢复在 appStore 上的购买。
http://developer.apple.com/库/ios/#documentation/NetworkingInternet/Conceptual/StoreKitGuide/MakingaPurchase/MakingaPurchase.html
There is a procedure to restore purchases on the appStore.
http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/StoreKitGuide/MakingaPurchase/MakingaPurchase.html