Slide 1

Slide 1 text

BUILD TWILIO-POWERED APPS FOR ANDROID AND IOS Jeff Linwood, Biscotti Labs Signal 2015, San Francisco @jefflinwood http://www.biscottilabs.com/
 http://www.jefflinwood.com/

Slide 2

Slide 2 text

TODAY’S TALK Quick Intro to Jeff Twilio Client for Mobile Server for Twilio Client PhoneGap PhoneGap Plugin for Twilio Demo

Slide 3

Slide 3 text

JEFF LINWOOD Software Developer with Biscotti Labs - mostly iOS and Android Teaches Mobile App Development at UT-Austin as an adjunct Uses Twilio for web and mobile apps Current Projects: On Our Way App, MapRhino App

Slide 4

Slide 4 text

TWILIO CLIENT - VOICE Web/Javascript iOS Android PhoneGap (https://github.com/ jefflinwood/ twilio_client_phonegap)

Slide 5

Slide 5 text

TWILIO CLIENT Capability Token Don’t ship Twilio credentials on the client side Build apps that do voice chat, conference call, make phone calls Great for staying within the app Pass parameters when connecting

Slide 6

Slide 6 text

CAPABILITY TOKENS Tokens configure your mobile app to be allowed to make or receive certain Twilio connections Outgoing Connections - TwiML Voice App - pass parameters Incoming Connections - identified by a String for the Client Name Create with Twilio Helper Library

Slide 7

Slide 7 text

CAPABILITY TOKEN EXAMPLE

Slide 8

Slide 8 text

SERVER FOR TWILIO CLIENT Need a server to provide capability tokens Twilio Mobile Quickstart - https:// github.com/twilio/mobile- quickstart Your own server will depend on what you're building - in app purchase, CRM, etc.

Slide 9

Slide 9 text

BUILDING APPS WITH PHONEGAP

Slide 10

Slide 10 text

GETTING STARTED WITH PHONEGAP/CORDOVA XCode (on Mac) Android Studio/Java Node.js/npm Cordova/PhoneGap npm install -g ios-sim

Slide 11

Slide 11 text

PHONEGAP PLUGINS Plugins bridge the gap between a mobile web site and a mobile app Standard plugins for phone capabilities - Camera, Filesystem Third-party plugins to wrap native libraries - like Twilio Client SDK Usually cross-platform, if possible.

Slide 12

Slide 12 text

PHONEGAP PLUGIN FOR TWILIO Created by Steve Graham for iOS Later additions to keep up with Cordova/PhoneGap development (fast moving changes) Android added with the same API Send and receive voice calls Similar API to Javascript SDK, but not exactly the same

Slide 13

Slide 13 text

INSTALLING TWILIO PLUGIN Follow directions on GitHub README to install plugin on a per-platform basis, or across Android and iOS Also need to follow directions in command line after installing plugin to add Twilio Client SDK Plugin gets updated with Cordova/PhoneGap and Twilio Client changes

Slide 14

Slide 14 text

PDF INSTALLATION GUIDE http://www.jefflinwood.com/ Short walkthrough of the steps you need to create a new PhoneGap app that uses the Twilio Plugin Good if you're not familiar with XCode (some assembly required)

Slide 15

Slide 15 text

DEMO OF PHONEGAP APP

Slide 16

Slide 16 text

THANK YOU! Jeff Linwood, @jefflinwood, http://www.jefflinwood.com/ Feedback is important to us Please text @T24 to 39242