Managing an app layout using a remote JSON source...
Hi all,
Just thought I'd share my findings today. Several leads I've gotten needed a way to manage color schemes and a few other things regarding layout. I didn't really want to have to submit client apps to the store every time a color change occurred (for a season for instance). I discovered you can actually manage the layout using remote sources. Here's an example of how to do it: http://beautyindesign.com/screencasts/titanium-update-an-iphone-app-with-a-remote-json-source/
Obviously you'd want to cache the results so it doesn't have to call the remote source every time but it did make me realize that an entire application could be managed / changed from remote sources. Crazy.
5 Answers
-
Thanks sharing this. I was just about to start a project for a client that did this. Glad to see its so easy to do!
-
Last time i checked that function portion of your code is against Apple's terms.
-
You are right, that is questionable. You could pass the text to be shown in an alert but passing an actual Javascript function or code would likely get you banned.
-
Thanks John for the clarification. I haven't personally read where Apple explicitly bans this so it was news to me.
-
https://developer.apple.com/appstore/resources/approval/guidelines.html
2.7 Apps that download code in any way or form will be rejected
2.8 Apps that install or launch other executable code will be rejected