Building Cross-Platform Apps using Titanium, Alloy, and Appcelerator Cloud Services - Released on Kindle - Code Updates - Clearly Innovative | Web and Mobile DevelopmentClearly Innovative | Web and Mobile Development

Building Cross-Platform Apps using Titanium, Alloy, and Appcelerator Cloud Services - Released on Kindle - Code Updates

 

Book is now Available on Kindle from Amazon

The book “Building Cross-Platform Apps using Titanium, Alloy, and Appcelerator Cloud Services” is now available for download from Amazon Kindle so we felt it was time to get the updates out to t hose who are getting into the code immediately. We believe we have addressed the immediate issues, but please let us know if you find any new ones.

Link To Amazon Kindle Store

Appcelerator 3.4.0 SDK Code Updates

The code accompanying the book was originally written and tested for Titanium 3.2.3.  Here are some updates to get it working on Titanium 3.4.0, along with some bug fixes.

The updates are outlined here, the full source code is accessible in the GitHub Repository

Change the SDK version

If you upgraded to Xcode 6, you may encounter this error when deploying to the iOS Simulator:

To fix this, change the version from 3.2.3 to 3.4.0 in tiapp.xml, : 

 

Close all XML tags

 Now that you are using 3.4.0, you may see this error:

Titanium requires all XML tags to be closed properly. Within app/views/friends.xml, close the Collection tag on line 2:

 

Correct the Android theme

Build to Android and you may see this error:

Fix this by renaming the following file:
platform/android/res/values/theme.xml

To:
platform/android/res/values/MyTheme.xml

Also, within MyTheme.xml, you will need to use AppCompat instead of Holo:

 

Finally, within tiapp.xml, set the tool-api-level to 14:

 

Maps on iOS 8

Try building to the iOS 8 simulator.  Login and click on the “Map” tabbed bar.  You may see the following error in the console:

Fix this by inserting the following lines into tiapp.xml:

 

You may run into this crash:

 

This is intermittent because it is only triggered under a certain error condition.  Fix this by changing line 323 on app/controllers/feed.js:


App_Book_image