Reproduce.
1. Create a new Alloy project.
2. Add following lines into Alloy.js file
var defaultValue = Ti.App.Properties.getString('SOME_PROPERTY', null);
console.warn('DefaultValue 1: ' + defaultValue);
Ti.App.Properties.setString('SOME_PROPERTY', 'This value should be preserved after intalls');
defaultValue = Ti.App.Properties.getString('SOME_PROPERTY', null);
console.warn('DefaultValue 2: ' + defaultValue);
3. Run the app in a windows device. Check the console log
4. Re-install the app through CLI or studio. Check the console log again
Problem
You will see the value saved in Ti.App.Properties is not persistence after re-install the same app.
Note
1. If do not re-install, just simply close and run again, it works well.
2. Tested on iOS platform, it works well. The value is persistence even after re-install.
Based on internal discussions on Teams, the values in
Ti.App.Properties
doesn't get persisted when app is uninstalled on other platforms too. I would close this ticket as Invalid. I believe original issue that customer is having is something related to TIMOB-25017, where application gets uninstalled (thus app properties got erased) when you deploy app from Ti CLI .Closing as invalid. If incorrect, please reopen.