Drupalcon: Developing Apps For iPhone/iPad/Android Using Drupal As A Base System

Sumit Kataria
Sumit Kataria

on

April 30, 2010

Drupalcon: Developing Apps For iPhone/iPad/Android Using Drupal As A Base System

At Drupalcon San Francisco Aaron and I led a session on developing apps for iPhone/iPad/Android using drupal as base system. Here are slides and videos from that session:

And the Video:


If you would prefer, you can download a higher resolution video from Archive.org.

In upcoming blog posts I will code and tutorials about this topic, some of which were covered in the DrupalCon session.

Share it!

Anyone have any luck using Drupal's JSON_SERVER for user.save?  I can't even seem to get it to work through the Drupal Admin page in a browser, let alone a URL or a client side application.  The link to the hack mentioned above 404s... Thanks!!!

Sumit-

The work you have done on this front is great, and I have watched the presentation twice now and started to code away.  I am getting hung up with Drupal's Services module as I seem to be getting nothing out of a views.get request when fetching it from Titanium.   I am looking forward to taking a look at your code examples as though I get a response (I get a 200 response), the JSON data passed back always seems to be null.

Thanks once again.  

John

Hi John,

I wanted to explain this in my next blog today but ... you need to make changes in json_module to use that code directly. xhr.send({data: JSON.stringify(view)}); is wrapping view variable (object) into another data variable and we need to remove this data varaible on serverside ... so changes to json_module are adding these 2 lines to json_server_server() function

$_POST = json_decode($_POST['data']);
$_POST = (array)$_POST;

This hack is only required for json_server module xmlrpc works out of box without any changes.


Download link to modified json_server module

I'm curious will apple approve apps developed from Titanium mobile  ?

As on the latest keynote, SJ said that new develeoper argreement on iphone os , apps developed from 3rd party tools will not be allowed to put on the app store.

Adrain,

Latest update from Titanium developers blog is here. Also http://www.apple.com/hotnews/thoughts-on-flash clearly tells change in TOS was targeted towards flash and Adobe.

From Titanium's blog:

"We’ve had over 50 applications approved for the App Store over the past 3 weeks under the new terms (which every developer now needs to agree to). Not a single one has been rejected for being built on Titanium. We even updated our own test app, Snapost, after accepting the new terms."

So atleast I am feeling strong about developing applications using Titanium for iPhone and Android.

SumitK