Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25299] Windows: Ti.App.Properties is not persistence if re-install the app

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2017-09-21T01:30:58.000+0000
Affected Version/sRelease 6.1.2, Release 6.2.0
Fix Version/sn/a
ComponentsWindows
Labelsparity
ReporterShuo Liang
AssigneeKota Iguchi
Created2017-09-16T05:34:54.000+0000
Updated2018-08-06T17:36:59.000+0000

Description

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.

Comments

  1. Kota Iguchi 2017-09-21

    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 .
  2. Eric Merriman 2018-08-06

    Closing as invalid. If incorrect, please reopen.

JSON Source