system.getPreference after version-update

Dear Corona community,

I am wondering what happens to variables set by system.setPreferences after I upload a new version to Google Play or Appstore and user updates his version. Do these values get lost?

Thanks

Hi @christoph-graf,

They should stay. Preferences usually are stored  in the app data folder and lost when app uninstalled or get cleared by user 

Thanks Bektur.

In fact, at least on a Huawei 8, preferences do stay after I uninstall and fresh install my app. On a Samsung S5 mini, on the other hand, they get lost. Would be nice if that’d behave the same…

/edit: All right, restarting a Huawei 8 after deinstallation does the trick.

It might be related to Auto Backup that presented in Android 6.0. 

https://developer.android.com/guide/topics/data/autobackup.html

Hi @christoph-graf,

They should stay. Preferences usually are stored  in the app data folder and lost when app uninstalled or get cleared by user 

Thanks Bektur.

In fact, at least on a Huawei 8, preferences do stay after I uninstall and fresh install my app. On a Samsung S5 mini, on the other hand, they get lost. Would be nice if that’d behave the same…

/edit: All right, restarting a Huawei 8 after deinstallation does the trick.

It might be related to Auto Backup that presented in Android 6.0. 

https://developer.android.com/guide/topics/data/autobackup.html