Slide 1

Slide 1 text

C R E A T I N G M O B I L E A P P S W I T H C O R D O V A Demian Borba Design Thinker, BlackBerry Developer Evangelist @demianborba

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

• Graduated in Industrial Design (CEFET-PR) • Graduated in Computer Science (UFAL) • Crazy about Design, UX, Business and Technology • Former Instructor at UCSD, Platt College and Art Institute • Working with Interactive Media for over 15 years • Founder of Action Creations, interactive agency in California • Developer Evangelist, 90% #upintheair (Americas+Asia+Europe) • Created the project www.designthinkingnow.com • www.phonegapbootcamp.io creator A B O U T M E

Slide 4

Slide 4 text

dborba.com html5test.com

Slide 5

Slide 5 text

@demianborba @gustavocostaw @joselitojunior1

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

http://phonegapbootcamp.io

Slide 8

Slide 8 text

https://play.google.com/store/apps/details?id=io.phonegapbootcamp.appandroid

Slide 9

Slide 9 text

http://appworld.blackberry.com/webstore/content/54145887

Slide 10

Slide 10 text

• Understand what Cordova/PhoneGap is • Understand how to configure your computers (Mac or Windows) • Understand how to create a project with Cordova Source (not CLI) • Understand how to build apps for iOS, Android and BlackBerry 10 • Understand how to use Cordova and WebWorks plugins • Understand how to deploy and debug your app on a real device (BlackBerry 10) • Understand www.phonegapbootcamp.io code (open source) angular+gulp+cordova. G O A L S T O D A Y

Slide 11

Slide 11 text

W H A T C O R D O V A I S ? P H O N E G A P ?

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

C O N F I G U R I N G Y O U R C O M P U T E R

Slide 15

Slide 15 text

No content

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

Download and Install Node: http://nodejs.org/download/

Slide 19

Slide 19 text

Download and unzip ANT: http://ant.apache.org/bindownload.cgi

Slide 20

Slide 20 text

Adding ANT to system PATH (Windows) ;C:\your\folder\apache-ant-1.9.4\bin\

Slide 21

Slide 21 text

Add ANT to your system PATH (Mac) export PATH="/Developer/apache-ant-1.9.4/bin:$PATH"

Slide 22

Slide 22 text

Download Cordova Source: http://cordova.apache.org

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

No content

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

No content

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

jdk + jre + adt-bundle (http://developer.android.com/sdk/index.html)

Slide 29

Slide 29 text

export PATH="/Applications/adt-bundle-mac-x86_64-20131030/sdk/platform-tools:$PATH" export PATH="/Applications/adt-bundle-mac-x86_64-20131030/sdk/tools:$PATH"

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

Download http://developer.blackberry.com/native/downloads

Slide 32

Slide 32 text

export PATH="/Applications/Momentics.app/host_10_2_0_15/darwin/x86/usr/bin:$PATH"

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

U S I N G C O R D O V A

Slide 35

Slide 35 text

Unzip cordova-3.4.0-src.zip

Slide 36

Slide 36 text

Unzip {{ wanted-platform }}

Slide 37

Slide 37 text

Creating your first project

Slide 38

Slide 38 text

Creating your first Cordova project for iOS

Slide 39

Slide 39 text

Creating your first Cordova project for Android

Slide 40

Slide 40 text

Creating your first Cordova project for BlackBerry 10

Slide 41

Slide 41 text

Adding a Target Device (BlackBerry 10)

Slide 42

Slide 42 text

B U I L D I N G F I R S T Y O U R A P P

Slide 43

Slide 43 text

Building your First App (iOS or Android)

Slide 44

Slide 44 text

Building your First App (BlackBerry 10) RELEASE MODE

Slide 45

Slide 45 text

Building your First App (BlackBerry 10) DEBUG MODE

Slide 46

Slide 46 text

U S I N G A N D C O R D O V A W E B W O R K S P L U G I N S

Slide 47

Slide 47 text

CORDOVA DOCS: http://cordova.apache.org/docs/en/edge/index.html

Slide 48

Slide 48 text

Cordova PLUGIN APIs Battery Status: Monitor the status of the device's battery. Camera: Capture a photo using the device's camera. Contacts: Work with the devices contact database. Device: Gather device specific information. Device Motion (Accelerometer): Tap into the device's motion sensor. Device Orientation (Compass): Obtain the direction that the device is pointing. Dialogs: Visual device notifications. FileSystem: Hook into native file system through JavaScript. File Transfer: Hook into native file system through JavaScript. Geolocation: Make your application location aware. Globalization: Enable representation of objects specific to a locale. InAppBrowser: Launch URLs in another in-app browser instance. Media: Record and play back audio files. Media Capture: Capture media files using device's media capture applications. Network Information (Connection): Quickly check the network state, and cellular network information. Splashscreen: Show and hide the applications splash screen. Vibration: An API to vibrate the device.

Slide 49

Slide 49 text

Meeting PLUGMAN https://cordova.apache.org/docs/en/edge/plugin_ref_plugman.md.html INSTALLING PLUGMAN npm install -g plugman INSTALLING A PLUGIN plugman install --platform --project --plugin UNINSTALLING A PLUGIN plugman uninstall --platform --project --plugin

Slide 50

Slide 50 text

Using WebWorks PLUGINS (BlackBerry 10) https://github.com/blackberry/BB10-WebWorks-Samples/tree/WebWorks-2.0/Localization plugman install --platform blackberry10 --project PROJECTROOTFOLDER --plugin com.blackberry.system

Slide 51

Slide 51 text

No content

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

D E P L O Y I N G D E B U G G I N G A N D Y O U R A P P

Slide 54

Slide 54 text

Deploying your App (iOS or Android)

Slide 55

Slide 55 text

Deploying your App (BlackBerry 10)

Slide 56

Slide 56 text

Debugging your App (BlackBerry 10)

Slide 57

Slide 57 text

App Stores

Slide 58

Slide 58 text

No content

Slide 59

Slide 59 text

P H O N E G A P B O O T C A M P . I O

Slide 60

Slide 60 text

https://github.com/demianborba/phonegapbootcampsite

Slide 61

Slide 61 text

No content

Slide 62

Slide 62 text

No content

Slide 63

Slide 63 text

No content

Slide 64

Slide 64 text

No content

Slide 65

Slide 65 text

http://ionicframework.com

Slide 66

Slide 66 text

http://brackets.io

Slide 67

Slide 67 text

No content

Slide 68

Slide 68 text

T H A N K Y O U Demian Borba Design Thinker, BlackBerry Developer Evangelist @demianborba