我需要 Adob​​e AIR For Android Encrypted Local Store 或 Application Storage 数据,即使在卸载或更新应用程序后也能保留。

Posted

技术标签:

【中文标题】我需要 Adob​​e AIR For Android Encrypted Local Store 或 Application Storage 数据,即使在卸载或更新应用程序后也能保留。【英文标题】:I need Adobe AIR For Android Encrypted Local Store or Application Storage data to persist even after uninstalling or updating the app. 【发布时间】:2013-12-05 11:56:54 【问题描述】:

根据 Encrypted Local Store 文档,只要 android AIR 应用程序的应用程序 ID 保持不变,即使应用程序版本号不同,ELS 也应该持续存在。不幸的是,根据我的经验,情况并非如此。我也将 strongbound 参数设置为 false。

此处的示例代码:

//saving
var baWrite:ByteArray = new ByteArray();
baWrite.writeObject(appData);
EncryptedLocalStore.setItem(APP_DATA_NAME, baWrite);

//loading
var baRead:ByteArray = EncryptedLocalStore.getItem(APP_DATA_NAME);
appData = baRead.readObject();

我的理论是发布者 ID 也需要设置,但我不太确定。

【问题讨论】:

您是否遇到用户升级应用版本时数据丢失的问题?两个版本的应用程序是否是相同版本的 AIR?您使用的 AIR 版本是什么? 【参考方案1】:

根据此处的文件:http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118666ade46-7e31.html 它说:

从 adobe doc 复制:ELS 中的数据可能由于多种原因而丢失。例如,用户可以卸载应用程序并删除加密文件。或者,发布者 ID 可能会因更新而更改。因此,ELS 应被视为私有缓存,而不是永久数据存储。

【讨论】:

以上是关于我需要 Adob​​e AIR For Android Encrypted Local Store 或 Application Storage 数据,即使在卸载或更新应用程序后也能保留。的主要内容,如果未能解决你的问题,请参考以下文章

Mac OS Sierra 上的 Adob​​e AIR 应用程序中出现流错误 #2032,需要帮助

在 Adob​​e Flex/AIR 中使用 HTTPService 对象进行 HTTP 基本身份验证

Android SDK 到 Adob​​e Air

C++/Qt vs Adob​​e AIR [关闭]

在 Adob​​e Air 中获取当前登录的操作系统用户

FIREBASE-ANE Adob e air android无法连接到我的Firebase项目