• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Rails as a Backend for an IOS Application
 

Rails as a Backend for an IOS Application

on

  • 976 views

Lightning talk given to Vancouver Ruby Meetup group on Mar 28, 2013

Lightning talk given to Vancouver Ruby Meetup group on Mar 28, 2013

Statistics

Views

Total Views
976
Views on SlideShare
974
Embed Views
2

Actions

Likes
2
Downloads
2
Comments
0

1 Embed 2

https://twitter.com 2

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Rails as a Backend for an IOS Application Rails as a Backend for an IOS Application Presentation Transcript

    • Rails as a Backend for an iOS Application Ian MacKinnon Vancouver Ruby Meetup Lightning Talks Mar. 28, 2013Thursday, 28 March, 13
    • We’ll be Talking About • Authentication • REST access • NotificationsThursday, 28 March, 13
    • Authentication • https://github.com/applicake/doorkeeper • has slightly outdated Railscast • now supports Mongoid • OAuth development environment can be a pain b/c of port number w/ simulator (RestKit ignores it) • Most iOs libraries will keep a regular sessionThursday, 28 March, 13
    • RESTKit • Your go-to for remote object loading and persisting (can even integrate with coredata!) • Handles JSON/XML to object mapping • Gotchas: • Rails expects nested attributes for params • Need root JSON element for mapping • JSON payload size mattersThursday, 28 March, 13
    • Configure RestKit to POST with a root pathThursday, 28 March, 13
    • Thursday, 28 March, 13
    • Ease up on JSON Size • Normal for application to be run on 3G • Override a model’s as_json to determine the model attributes that will be sent across wireThursday, 28 March, 13
    • APNS (push notifications) • Used to suck but there’s a pretty awesome gem now • Grocer (https://github.com/grocer/grocer) • “There are other gems out there to do this, but grocer plans to be the cleanest, most extensible, and friendliest.” • Different Gateways for Dev and Production • Token identifies a device, not a userThursday, 28 March, 13
    • GrocerThursday, 28 March, 13
    • MISC • SSL Certificates are worth it • Parse is an alternative way of getting up and running quick • But you might need a web presence too • Kind of hard to migrate when you have a bunch of apps pointing to api.parse.comThursday, 28 March, 13