Ticket to ride
Keir Bowden, BrightGen, CTO
@bob_buzzard
About me
 CTO of BrightGen
 5 years Force.com
 Force.com MVP
 Enterprise Java background
When mobile web apps aren’t enough
You need access to device features but don’t want to learn a
new programming language p...
Tickets app flow
1. Download Tickets
1. Download Tickets

2. Store Offline
2. Store Offline

3. Present Code
3. Present Co...
Driver app flow
1. Sign in to service
1. Sign in to service
4. Consume ticket
4. Consume ticket

2. Touch to scan
2. Touch...
Mobile options
Tickets app

Hybrid
Hybrid
Application
Application

iOS
iOS

V 1.3
V 1.3

REST
REST
Toolkit
Toolkit

Smart
Smart
Store
Sto...
Driver app

Hybrid
Hybrid
Application
Application

iOS
iOS

V 1.3
V 1.3

REST
REST
Toolkit
Toolkit

Scanner
Scanner
Plugin...
Demo
 Retrieving tickets and presenting a ticket code
 Scanning and verifying the ticket
 A look at the code:
•

Store....
Lesson 1: Storyboard the application
 Especially single page applications!
 Map pages to functionality
Lesson 2: Professional JavaScript
 Avoid anonymous functions
 Use your own namespace
 Don’t tie behaviour to content
Lesson 3: Use the discussion boards
 You aren’t the first
 Leverage the community
 Access the SDK developers
Lesson 4: Terminology
 Cordova ≈ Linux
 Phonegap ≈ RedHat
 Used interchangeably
Keir Bowden
CTO, BrightGen
@bob_buzzard
Ticket to Ride: Offline Hybrid Mobile Apps
Upcoming SlideShare
Loading in …5
×

Ticket to Ride: Offline Hybrid Mobile Apps

160 views
118 views

Published on

Join Force.com's MVP Keir Bowden as he demonstrates a pair of hybrid applications that allow passengers to download tickets for use even when offline, and drivers to scan the ticket from the traveler's mobile device and register the passenger's presence on the journey. You'll see specific code examples of offline storage, QR code generation, and scanner integration.

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
160
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Ticket to Ride: Offline Hybrid Mobile Apps

  1. 1. Ticket to ride Keir Bowden, BrightGen, CTO @bob_buzzard
  2. 2. About me  CTO of BrightGen  5 years Force.com  Force.com MVP  Enterprise Java background
  3. 3. When mobile web apps aren’t enough You need access to device features but don’t want to learn a new programming language per platform Here’s how to leverage your existing web skills using the Salesforce Mobile SDK ...
  4. 4. Tickets app flow 1. Download Tickets 1. Download Tickets 2. Store Offline 2. Store Offline 3. Present Code 3. Present Code
  5. 5. Driver app flow 1. Sign in to service 1. Sign in to service 4. Consume ticket 4. Consume ticket 2. Touch to scan 2. Touch to scan 3. Scan code and validate 3. Scan code and validate
  6. 6. Mobile options
  7. 7. Tickets app Hybrid Hybrid Application Application iOS iOS V 1.3 V 1.3 REST REST Toolkit Toolkit Smart Smart Store Store
  8. 8. Driver app Hybrid Hybrid Application Application iOS iOS V 1.3 V 1.3 REST REST Toolkit Toolkit Scanner Scanner Plugin Plugin
  9. 9. Demo  Retrieving tickets and presenting a ticket code  Scanning and verifying the ticket  A look at the code: • Store.js - Smartstore integration • Tickets.js – interface between store and UI • Scan.js – Scanner integration
  10. 10. Lesson 1: Storyboard the application  Especially single page applications!  Map pages to functionality
  11. 11. Lesson 2: Professional JavaScript  Avoid anonymous functions  Use your own namespace  Don’t tie behaviour to content
  12. 12. Lesson 3: Use the discussion boards  You aren’t the first  Leverage the community  Access the SDK developers
  13. 13. Lesson 4: Terminology  Cordova ≈ Linux  Phonegap ≈ RedHat  Used interchangeably
  14. 14. Keir Bowden CTO, BrightGen @bob_buzzard

×