building mobile applications with drupal
TRANSCRIPT
Building Mobile Applications with Drupal
Jeff LinwoodDrupal Camp Dallas July 9, 2011
http://www.jefflinwood.com/@jefflinwood
Saturday, July 9, 2011
Building Mobile Apps with Drupal
• Drupal + Mobile Architecture
• jQuery Mobile + PhoneGap Demo
• Configuring Drupal 7 Services + REST
+ =
Saturday, July 9, 2011
Architecture
Drupal 7
REST EndpointServices Module
Android iPhone
Plist XMLJSON
Mobile Framework
AJAX/JSON
Saturday, July 9, 2011
• Driven by requirements
• Cache data in SQLite
• Cache JSON on the file system
• Only online access for some functionality
Caching and Offline Access
Saturday, July 9, 2011
Configuring Services 3 with D7
• Services (Services + REST Server)
• rest_server_plist
• Services_views
• ctools
Install and enable modules:
Saturday, July 9, 2011
Edit Resources
• Need to determine what you want to serve through the endpoint
• What actions are allowed?
• Drupal permissions
Saturday, July 9, 2011
Mobile Dev Resources
• Drupal iOS SDK - https://github.com/workhabitinc/drupal-ios-sdk
• DrupalCloud - https://github.com/skyred/DrupalCloud
• PhoneGap - http://www.phonegap.com/
• jQuery Mobile - http://jquerymobile.com/
Saturday, July 9, 2011
Drupal+Mobile Recipes
• Showing Nodes on a Map
• Drupal 7 - GMap + Location
• iPhone - MKMapKit
• Android - MapView
Saturday, July 9, 2011
Mobile Recipe - Views
• Drupal can do all the heavy lifting with the views
• May not need complex data handling code on each client
• iOS - Drupal iOS SDK, UITableView
• Android - ListActivity, ArrayAdapter
Saturday, July 9, 2011
Building Blocks
http://www.flickr.com/photos/13403905@N03/2080281038/ - Alan Chia
Saturday, July 9, 2011
To follow my app adventures
• http://www.jefflinwood.com/
• github:jefflinwood
• twitter: @jefflinwood
• Always interested in new apps and projects
Saturday, July 9, 2011