lundi 27 juin 2016

actionscript 3 air for android encrypted local storage data lost after upgrade

I've developed 2 mobile apps for ios and android with animate CC and as3/ adobe AIR.

The apps use AIR's encrypted local storage (ELS) to remember user settings and bypass a registration screen after first time login. This works fine on ios (on both apps), so that even if a user uninstalls the app, then reinstalls later, the settings are remembered.

On android, the app resets itself every time - i.e. it seems that it is unable to access the ELS.

Permissions are set in the manifest as follows:


<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

I have been unable to find any other cases like this on the website that apply specifically to Android, though the question was also asked in this thread, it offered suggestions that should work for both ios/android and ultimately these don't seem to apply to my particular case :(

I need Adobe AIR For Android Encrypted Local Store or Application Storage data to persist even after uninstalling or updating the app.

I have had a few experienced as3 coders look into this, and the code seems to be correct, and it's quite possibly permissions related.

I also attempted to use a work around (where a directory is created, and data is stored in there). Apparently, this work around code has been used on several Flex apps and works, but even so, the same problem of the app resetting data still happens. (this could hint at it being an animate cc bug, or a permissions setting thing, perhaps?)

I've tried with a few different SDKs as well (20,21,22) and no joy. Still racking my brains! Any help much appreciated!


Aucun commentaire:

Enregistrer un commentaire