简体   繁体   English

iOS上的Titanium Alloy:用户获得应用程序更新时,它将删除并重置本地数据库

[英]Titanium Alloy on iOS: When a user gets an app update, it deletes and resets the local database

I've released a Titanium App on iOS through the App Store. 我已经通过App Store在iOS上发布了Titanium App。 It uses Alloy models, views and controllers and therefore saves all data that the user inputs via the Alloy .save() method. 它使用Alloy模型,视图和控制器,因此保存用户通过Alloy .save()方法输入的所有数据。 I've recently received some feedback from a user that after their most recent update, their data was wiped and none of their saved information was intact. 我最近收到了用户的一些反馈,这些反馈是他们最近的更新后,其数据已被擦除,并且所有保存的信息均未删除。

I thought that the Alloy database was saved into the private documents of the device, therefore keeping it intact when the user updates the app. 我以为Alloy数据库已保存到设备的私人文档中,因此在用户更新应用程序时保持原样。 Is that true? 真的吗?

What kind of things can I troubleshoot to see where I have gone wrong? 我可以对哪种问题进行故障排除,以了解哪里出了问题? I have not written any code that would remove anything from the database. 我尚未编写任何可从数据库中删除任何内容的代码。

I thought that the Alloy database was saved into the private documents of the device, therefore keeping it intact when the user updates the app. 我以为Alloy数据库已保存到设备的私人文档中,因此在用户更新应用程序时保持原样。 Is that true? 真的吗?

That's correct. 没错

I've recently received some feedback from a user that after their most recent update, their data was wiped and none of their saved information was intact. 我最近收到了用户的一些反馈,这些反馈是他们最近的更新后,其数据已被擦除,并且所有保存的信息均未删除。

It sounds like a whole database was removed. 听起来好像删除了整个数据库。 This may happen if you delete an application. 如果您删除一个应用程序,则可能会发生这种情况。 I think you better test it by yourself. 我认为您最好自己进行测试。 It is hard to help if we can't see any source code. 如果我们看不到任何源代码,很难提供帮助。 I would also recommend you to look if there are no differences in Alloy (Maybe your updated version of the app uses newer version that is in something different)... maybe the data wasn't removed ,but was only changed the name of the database / tables. 我还建议您查看Alloy中是否没有差异(也许您的应用程序的更新版本使用的是稍有不同的更新版本)...也许数据并未删除,而只是更改了名称数据库/表。 Hard to say... 很难说...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Titanium Alloy时如何向iOS应用添加rightNavButton? - How do you add a rightNavButton to an iOS app when using Titanium Alloy? 迁移多个数据库版本时,iOS App Update会删除数据库 - iOS App Update deletes database when migrating more than one database version 钛合金中的SQLite更新查询 - SQLite update query in Titanium Alloy 当用户在iOS中删除我的应用时,我可以做什么? - Can I do something when user deletes my app in iOS? iOS应用程序-用户从设备删除应用程序时进行拦截 - iOS Application - intercept when a user deletes the app from device 合金钛应用装置中数据库文件的位置 - Location of database file in device for alloy titanium application 谁能为我推荐一种将钛合金iOS应用部署为可执行文件供他人预览的方法? - Can anyone recommend a way for me to deploy a titanium alloy iOS app as an executable for others to preview? 当 App 删除(卸载)收到邮件时 iOS - When App deletes (uninstall) getting a mail iOS 用户删除应用程序时触发注销用户的方法-iPad应用程序 - Trigger methods to logout user when user deletes app - iPad app 如何在Titanium Alloy应用程序中的iOS Google地图上显示路线 - How to show directions on an iOS Google map within a Titanium Alloy application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM