I would like to have some constants in the app such as:
API_SERVER = 'http://devserver.dev';
Is it possibly to easily persist variables across the app? Without passing?
You can set Global variables using Ti.App, for example:
Ti.App.API_SERVER = 'http://devserver.dev';
Then you just need to use the Ti.App.API_SERVER wherever you want.