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.
2. About me
CTO of BrightGen
5 years Force.com
Force.com MVP
Enterprise Java background
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 ...
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
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. Lesson 1: Storyboard the application
Especially single page applications!
Map pages to functionality
11. Lesson 2: Professional JavaScript
Avoid anonymous functions
Use your own namespace
Don’t tie behaviour to content
12. Lesson 3: Use the discussion boards
You aren’t the first
Leverage the community
Access the SDK developers