Get Help Building Your
PhoneGap Hybrid App
Overview and Workshop
May 22, 2014
MASAHIRO TANAKA
FOUNDER & CEO, MONACA
The Official PhoneGap Meetup :: SF Bay Area
Venue provided by Adobe.
Who am I?
Masahiro Tanaka
Founder & CEO, Monaca
Twitter: @massie
E-mail: masahiro@asial.co.jp
Recent books and magazines:
PhoneGap company.
Official docs
translations.
#1 PG community
In Japan.
Cloud IDE
What’s HOT in PhoneGap?
No.1Platform: PhoneGap
Why PhoneGap?
 Open & standard technology.
 Allows greater access to mobile
development.
Today’s Workshop
Twitter Client from Onsen CSS Components:
http://components.onsenui.io/
Using Twitter API
Useful resource: https://dev.twitter.com/docs/api/1.1
 Twitter opens all features.
 All APIs are RESTful (Ajax), but requires auth.
 Be careful about # of request has limitation.
Example: Timeline
https://dev.twitter.com/docs/api/1.1/get/statuses/mentions
_timeline
Example: Specific user
https://api.twitter.com/1.1/statuses/user_timeline.json?scree
n_name=monaca_io&count=20
Run on your device now!
Here, I will use Monaca for quicker start.
http://monaca.mobi/
Please access and signup (forever free):
You can also use your Cordova environment.
Install debugger app
Find and install
“Monaca”
Import the project
Open dashboard, and click New Project.
Then, import from the following URL:
https://github.com/monaca/sample-twitter-client
Edit index.html
Open index.html and replace consumer key and
secret to your Twitter API key and secret.
Run It!
Code Reading
 oAuth handling
 jsOAuth (http://bytespider.github.io/jsOAuth/)
 Micro templating
 Underscore.js (http://underscorejs.org/)
Important keywords for code reading:
Want a native-like UI for
your PhoneGap app?
1. Performance oriented.
2. Web-component based.
3. Fully customizable.
4. Android 2.3, multi-screen.
http://onsenui.io/
Thank you.
Check @monaca_io to download this slide
and the source code.
Contest runs until June 30, 2014

How to make Twitter app with PhoneGap/Cordova

  • 1.
    Get Help BuildingYour PhoneGap Hybrid App Overview and Workshop May 22, 2014 MASAHIRO TANAKA FOUNDER & CEO, MONACA The Official PhoneGap Meetup :: SF Bay Area
  • 2.
  • 3.
    Who am I? MasahiroTanaka Founder & CEO, Monaca Twitter: @massie E-mail: masahiro@asial.co.jp Recent books and magazines:
  • 4.
    PhoneGap company. Official docs translations. #1PG community In Japan. Cloud IDE
  • 5.
    What’s HOT inPhoneGap?
  • 6.
  • 7.
    Why PhoneGap?  Open& standard technology.  Allows greater access to mobile development.
  • 8.
    Today’s Workshop Twitter Clientfrom Onsen CSS Components: http://components.onsenui.io/
  • 9.
    Using Twitter API Usefulresource: https://dev.twitter.com/docs/api/1.1  Twitter opens all features.  All APIs are RESTful (Ajax), but requires auth.  Be careful about # of request has limitation. Example: Timeline https://dev.twitter.com/docs/api/1.1/get/statuses/mentions _timeline Example: Specific user https://api.twitter.com/1.1/statuses/user_timeline.json?scree n_name=monaca_io&count=20
  • 10.
    Run on yourdevice now! Here, I will use Monaca for quicker start. http://monaca.mobi/ Please access and signup (forever free): You can also use your Cordova environment.
  • 11.
    Install debugger app Findand install “Monaca”
  • 12.
    Import the project Opendashboard, and click New Project. Then, import from the following URL: https://github.com/monaca/sample-twitter-client
  • 13.
    Edit index.html Open index.htmland replace consumer key and secret to your Twitter API key and secret.
  • 14.
  • 15.
    Code Reading  oAuthhandling  jsOAuth (http://bytespider.github.io/jsOAuth/)  Micro templating  Underscore.js (http://underscorejs.org/) Important keywords for code reading:
  • 16.
    Want a native-likeUI for your PhoneGap app? 1. Performance oriented. 2. Web-component based. 3. Fully customizable. 4. Android 2.3, multi-screen. http://onsenui.io/
  • 17.
    Thank you. Check @monaca_ioto download this slide and the source code.
  • 18.
    Contest runs untilJune 30, 2014