Updates and EncryptedLocalStore

2017-11-28 Thread bilbosax
I am using EncryptedLocalStore to hold a key that I use to acces an encrypted
SQLite database in a mobile AIR app. Every time I make changes and recompile
the program or run it in debug mode, I lose the key. Does compiling the
program and installing it to run or debug totally wipe out
EncryptedLocalStore? I guess I figured it would act more like an Update than
a fresh new install when you tested the app. Does anybody know?



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: Updates and EncryptedLocalStore

2017-11-29 Thread 0xC3
I have never used the EncryptedLocalStore, however I know that in
FlashBuilder there is an option in Debug Configurations that will clear
application data on each launch. If you uncheck the option then it will
preserve the app data across rebuilds.  



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: Updates and EncryptedLocalStore

2017-11-29 Thread Erik J. Thomas
I use encrypted local store all the time on mobile devices as well as in an AIR 
emulator, and I never run into this problem unless building a RELEASE build and 
installing it on the device with an ad hoc provisioning profile (iOS). That 
always resets any local storage associated with the app.

However, I use IntelliJ IDEA which may make a difference. Perhaps you're 
running into yet another FlashBuilder 4.7 issue. That IDE is getting pretty 
long in the tooth.


> On Nov 28, 2017, at 7:31 PM, bilbosax  wrote:
> 
> I am using EncryptedLocalStore to hold a key that I use to acces an encrypted
> SQLite database in a mobile AIR app. Every time I make changes and recompile
> the program or run it in debug mode, I lose the key. Does compiling the
> program and installing it to run or debug totally wipe out
> EncryptedLocalStore? I guess I figured it would act more like an Update than
> a fresh new install when you tested the app. Does anybody know?
> 
> 
> 
> --
> Sent from: http://apache-flex-users.246.n4.nabble.com/
> 



Re: Updates and EncryptedLocalStore

2017-11-29 Thread Erik J. Thomas
Sorry, one correction. If you reinstall an iOS app (adhoc or inhouse 
provisioning profile) that has the same bundle id, it doesn't wipe the 
encrypted local store.

I believe there may be some setting that you have that is causing it to wipe 
your data in FB 4.7. Take a look around. I can't remember what it was, but I 
seem to recall from years and years and years ago, when I used FB there was 
such a setting. LOL :-)

Cheers,

Erik

> On Nov 29, 2017, at 3:31 PM, Erik J. Thomas  wrote:
> 
> I use encrypted local store all the time on mobile devices as well as in an 
> AIR emulator, and I never run into this problem unless building a RELEASE 
> build and installing it on the device with an ad hoc provisioning profile 
> (iOS). That always resets any local storage associated with the app.
> 
> However, I use IntelliJ IDEA which may make a difference. Perhaps you're 
> running into yet another FlashBuilder 4.7 issue. That IDE is getting pretty 
> long in the tooth.
> 
> 
>> On Nov 28, 2017, at 7:31 PM, bilbosax  wrote:
>> 
>> I am using EncryptedLocalStore to hold a key that I use to acces an encrypted
>> SQLite database in a mobile AIR app. Every time I make changes and recompile
>> the program or run it in debug mode, I lose the key. Does compiling the
>> program and installing it to run or debug totally wipe out
>> EncryptedLocalStore? I guess I figured it would act more like an Update than
>> a fresh new install when you tested the app. Does anybody know?
>> 
>> 
>> 
>> --
>> Sent from: http://apache-flex-users.246.n4.nabble.com/
>> 
> 
> 



Re: Updates and EncryptedLocalStore

2017-11-29 Thread bilbosax
Thanks guys, I will look into the settings in FB 4.7 tomorrow. I was told on
another forum that EncryptedLocalStore is a volatile storage solution on
mobile because a user can clear it on their own on their devices. I don't
know if this is true or not, but I didn't want to take a chance, so now I
download my encryption code every time the user opens the app and store it
in EncryptedLocalStore for the remainder of the session. So now, even if it
does get cleared by reinstalling or updating the app, it gets reset every
time the app runs, so in essence, the problem has been solved. Do you happen
to know if that guy was right, is EncryptedLocalStore a storage solution
that a user can choose to clear on their own through their settings or other
mechanism??



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: Updates and EncryptedLocalStore

2017-11-30 Thread 0xC3
Yes. It is not recommended as a permanent local store.
https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/data/EncryptedLocalStore.html

  



--
Sent from: http://apache-flex-users.246.n4.nabble.com/


Re: Updates and EncryptedLocalStore

2017-11-30 Thread bilbosax
Thanks 0xC3.  Very helpful and useful information!! I think I have found the
solution that I need now.



--
Sent from: http://apache-flex-users.246.n4.nabble.com/