I am looking for a way to use a DRUPAL backend for native iPhone apps. These are native iPhone apps, not html apps. I was wondering if this would be a good module to work with.

Comments

seutje’s picture

I'm sure that there are better formats than JSON for use with iPhone dev

scottgifford’s picture

We ended up using JSON for an iPhone app. We created the POST body manually (it was fairly straightforward) and used Stig Brautaset's Objective-C JSON framework. Googling a bit, I see a JSON Over HTTP On The iPhone Tutorial. I wrote the server side not the client side, but our iPhone developer reported it was fairly straightforward, and had less problems than the XML-RPC client we were using before.

irishgringo’s picture

on the server side? what did you do? I am about to try some of this a little latter in the month. any sugestions would be helpful

scottgifford’s picture

On the server side, we just used the Services and JSON Server modules and everything pretty much worked. The Service Module Example provided a good start.

We ran into a few small problems, I reported bugs and posted patches for most of them, if you run into trouble definitely glance through the trouble tickets.

yellowpeter’s picture

Great job! If you need any help especially the client-server side communication please drop me a mail. We have gone thru the whole process when developing Tapatalk (http://www.tapatalk.com), a vbulletin/phpBB forum client on iPhone. And in case you have started on the Forum module let us know how it goes and see if there is something we can work together.

We are looking into the possibility of porting it to Drupal.

-Winter

abritez’s picture

@scottgifford I've been trying to do similar, how ever having crossdomain issues, and not having much luck with the JSON/P patch. If you don't mind me asking, how did you get around this? Thanks so much, seems like I have been going in circles with this issue.

mrgoltra’s picture

subscribing.

nickvidal’s picture

@abritez

Regarging JSONP:

http://drupal.org/node/624898

It's simple. If you need further help, let me know.

irishgringo’s picture

with the iPhone 3.0 SDK... would you still use Stig Brautaset's Objective-C JSON framework.?

what is the benefit as oppose to using the native stuff?

also, if you were to do it again, would you do anything different?

Anonymous’s picture

Category: feature » support
Status: Active » Closed (fixed)

I'm going to be making an official 6.x release this month.

I haven't been really involved with this project but have been using it.

I have been doing iPhone + Drupal for a while now. I have a DrupalClient objective-c object you can find on github. That one is an older version that I will be updating really soon. The current github one runs off XMLRPC of services. My new one is strictly json.

I find the biggest challenge is having clean data sources coming from Drupal.

The default views services suck. The main problem is that the results they pass do not provide 'formatted' fields and with how a lot of the logic with fields work, this is incredibly important to make views services even useful.

I'm happy to contribute everything I have that has made this easier for me however I would love to find someone to work with that would start a new version of views_services that actually makes sense.

Closing this for now since it is not the right place for it but I would love to see more discussion about it.

heliod’s picture

@yellowpeter

Is something happening regarding Tapatalk with Drupal ?

Helio

mrgoltra’s picture

Project: JSON server » Drupal core
Version: 6.x-1.x-dev » 7.0-rc3
Component: Miscellaneous » xml-rpc system
seutje’s picture

Project: Drupal core » JSON server
Version: 7.0-rc3 » 6.x-1.x-dev
Component: xml-rpc system » Miscellaneous

@mrgoltra: why did you just pipe this into the core issue queue, even though it's set to closed? o.O

mrgoltra’s picture

Sorry, my bad. I don't know what happened. I was just reading the thread and didn't expect to change something.

kylebrowning’s picture