Reputation: 16214
Does anybody know what the lufecyycle of a ti.app.property is in titanium?
I am wantng to do some stuff on application startup only, and was wanting to hold if the thing in question had occurred or not in a ti.app.property field. the problem is, i am unsure if this field, once set, will persist across the "home" button or "back" button being pressed.
So is there some place at suggests when a ti.app.property field is instantiated/destroyed etc?
Upvotes: 0
Views: 107
Reputation: 6095
It persists till the app is deleted from your phone or you programmatically reset / delete it.
Exact quote from the documentation:
The App Properties module is used for storing application-related data in property/value pairs that persist beyond application sessions and device power cycles.
Upvotes: 1