Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10246] iOS: Ti.App.Properties that are not persistent is iOS simulator

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2016-08-24T14:23:35.000+0000
Affected Version/sRelease 2.0.2, Release 2.1.0, Release 2.1.1
Fix Version/sn/a
ComponentsiOS
Labelscore
ReporterBlain Hamon
AssigneeEric Merriman
Created2012-07-30T17:49:56.000+0000
Updated2017-03-23T21:18:18.000+0000

Description

From a community member wrt Mountain Lion, "Yup, everything works except for the Ti.App.Properties that are not persistent when I relaunch the app in the simulator." It's uncertain if this is due to clean builds, or happens every time. Will have to recreate first.

Comments

  1. Chris Barber 2016-08-24

    Seems to work for me using Titanium SDK master (6.1.0). I used this in the app.js to test:
       var n = Ti.App.Properties.getInt('foo');
       if (!n) {
       	n = 1;
       }
       Ti.App.Properties.setInt('foo', n + 1);
       console.log('n = ' + n);
       
  2. Lee Morris 2017-03-23

    Can verify this ticket as "Cannot Reproduce". Tested with the following environment; iPhone 7 and Simulator (10.2) MacOS 10.11.6 (15G31) Studio 4.8.1.201612050850 Ti SDK 6.0.3 GA Appc NPM 4.2.8 Appc CLI 6.1.0 Ti CLI 5.0.11 Alloy 1.9.5 Arrow 1.10.1 Xcode 8.2 (8C38) Node v4.6.0 Java 1.7.0_80

JSON Source