Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-936] Ti.App.Properties not always persisted

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:54:43.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.4.0
ComponentsiOS
Labelsn/a
ReporterNolan Wright
AssigneeBlain Hamon
Created2011-04-15T02:39:38.000+0000
Updated2011-04-17T01:54:43.000+0000

Description

place this code in app.js

var v = Titanium.App.Properties.getString("Vol5");
Titanium.API.info('value: ' + v);
if (v==null){
Titanium.App.Properties.setString("Vol5","foo");
Titanium.API.info('value now ' + Titanium.App.Properties.getString("Vol5"));
}

sometimes it is persisted, other times it is not. maybe it's a timing issue

Comments

  1. Jeff Haynie 2011-04-15

    (from [3afa629d050707c160db222531975ac2463f2b0f]) Closes #936: Need to force synchronize after setting a property. http://github.com/appcelerator/titanium_mobile/commit/3afa629d050707c160db222531975ac2463f2b0f"> http://github.com/appcelerator/titanium_mobile/commit/3afa629d05070...

JSON Source