11. Mobile
Web
Na+ve
App Hybrid
App
Dev
Time Short
Long
Normal
Dev
Cost
Reasonable Expensive Reasonable
Portability
Yes No Yes
Performance
Fast Very
Fast Normal
Na+ve
Func+on
NO YES YES
Offline NO YES YES
User
Experience Normal
Best Normal
App
Store
Distribu+on
NO YES YES
Comparison
13年8月27⽇日星期⼆二
18. Myth
“Our Biggest Mistake Was Betting Too Much On HTML5”
source:http://www.socialpositives.com/wp-content/uploads/2012/12/org_4552057-3418413.jpg
13年8月27⽇日星期⼆二
23. About PhoneGap
·•Project begin in 2008
·•iPhoneDevCamp
·•Developed to get geolocation
·•Adobe Acquire PhoneGap team in 2011
and donated to Apache Foundation
13年8月27⽇日星期⼆二
24. About Apache Cordova
·•Cordova is a open source project
·•PhoneGap is the implement
·•Bond like Chrome and Webkit
13年8月27⽇日星期⼆二
25. What is PhoneGap Build
Take the pain out of developing mobile apps.
13年8月27⽇日星期⼆二
26. What is PhoneGap Build
·•We compile for you
·•Support multiple platforms
·•Work together
·•Quick deployment cycles
13年8月27⽇日星期⼆二
30. Create New Project
·•phonegap create AAA -n BBB.BBB.BBB -i CCC
AAA is directory to be generated for your project
BBB provides your project with a reverse domain-style identifier
CCC provides the application's display text
13年8月27⽇日星期⼆二
31. Create New Project
·•phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git
·•phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-media-capture.git
·•phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-media.git
13年8月27⽇日星期⼆二
32. Build the project
·•phonegap build android
·•phonegap build ios
generating platform-specific files within the project's platforms subdirectory
13年8月27⽇日星期⼆二
33. Run the project
·•phonegap run android
·•phonegap run ios
both the build and install operations in one line
13年8月27⽇日星期⼆二