[TIMOB-936] Ti.App.Properties not always persisted
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-04-17T01:54:43.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 1.4.0 |
| Components | iOS |
| Labels | n/a |
| Reporter | Nolan Wright |
| Assignee | Blain Hamon |
| Created | 2011-04-15T02:39:38.000+0000 |
| Updated | 2011-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
(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...