Top Banner
Building Mobile Apps by Example Silicon Valley Drupal User Group January 14th, 2015 by: Tyler Frankenstein
19

Build Mobile Apps Using PhoneGap and Drupal by Tyler Frankenstein

Jul 16, 2015

Download

Software

littleMAS
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Build Mobile Apps Using PhoneGap and Drupal by Tyler Frankenstein

Building Mobile Apps by Example

Silicon Valley Drupal User Group

January 14th, 2015

by: Tyler Frankenstein

Page 2: Build Mobile Apps Using PhoneGap and Drupal by Tyler Frankenstein

● Drupal Developer (7+ Years)

● Easy Street 3 Co-Founder (June 2010 - Present)

● U.M. Library Drupal Developer (Feb 2011 - May 2013)

● Drupal Contributor (10+ Modules)

● DrupalCon Austin 2014 (Co-Presenter w/ Commerce Guys)

● DrupalGap (Creator / Lead Developer)

http://drupal.org/u/tyler.frankenstein

Page 3: Build Mobile Apps Using PhoneGap and Drupal by Tyler Frankenstein

“...why would I want a mobile application?”

“I already have a responsive, mobile friendly Drupal website…”

Page 4: Build Mobile Apps Using PhoneGap and Drupal by Tyler Frankenstein

Mobile Application Device Features

● Accelerometer● Audio Capture● Camera*● Contact List● GPS● Notifications● Offline Storage* Take a photo, record video, and browse local media library.

Page 5: Build Mobile Apps Using PhoneGap and Drupal by Tyler Frankenstein

1. GeoTag a Photo and Upload it

2. GeoLocate Nearby Content and Display on Map

Build 2 Example Mobile Apps

Page 6: Build Mobile Apps Using PhoneGap and Drupal by Tyler Frankenstein

Tools Involved

Page 7: Build Mobile Apps Using PhoneGap and Drupal by Tyler Frankenstein

Why Drupal?

Drupal let’s us easily manage our...

Users Content Files

Page 8: Build Mobile Apps Using PhoneGap and Drupal by Tyler Frankenstein

Why PhoneGap?It let’s us utilize familiar web technologies like...

and then ...

Page 9: Build Mobile Apps Using PhoneGap and Drupal by Tyler Frankenstein

Compiles them into Mobile Apps

Android (JAVA) (Objective-C, Swift)

Page 10: Build Mobile Apps Using PhoneGap and Drupal by Tyler Frankenstein

If we know HTML, CSS and JavaScript, then...

… we can build mobile apps.

Page 11: Build Mobile Apps Using PhoneGap and Drupal by Tyler Frankenstein

jQuery Mobile takes simple HTML and...

Why jQuery Mobile?

… makes it pretty, and mobile friendly.

Page 12: Build Mobile Apps Using PhoneGap and Drupal by Tyler Frankenstein

jQuery Mobile’s HTML Markup

Page 13: Build Mobile Apps Using PhoneGap and Drupal by Tyler Frankenstein

That’s great, but...

… how do we handle multiple pages?

Page 14: Build Mobile Apps Using PhoneGap and Drupal by Tyler Frankenstein

Say “Hello World” to DrupalGap“DrupalGap is an open source mobile application development kit for Drupal websites. It is powered by PhoneGap, jQuery Mobile and Drupal.”

Page 15: Build Mobile Apps Using PhoneGap and Drupal by Tyler Frankenstein

We use Drupal to easily build our websites...

… so let’s use DrupalGap to easily build our apps.

Page 16: Build Mobile Apps Using PhoneGap and Drupal by Tyler Frankenstein

Easily build mobile apps, you say?

Let’s see it to believe it…

Example #1: GeoTag a Photo and Upload it

http://tylerfrankenstein.com/code/build-mobile-app-geo-tag-photo

Page 17: Build Mobile Apps Using PhoneGap and Drupal by Tyler Frankenstein

Not too bad, how about one more...

Example #2: GeoLocate Nearby Content and Display on Map

http://www.tylerfrankenstein.com/code/build-mobile-app-geo-locate-content-drupal

Page 18: Build Mobile Apps Using PhoneGap and Drupal by Tyler Frankenstein

Neat-o! How do I get started?

DrupalGap Module● https://drupal.org/project/drupalgap

DrupalGap SDK● https://github.com/signalpoint/DrupalGap

Hello World● http://drupalgap.org/hello-world

Page 19: Build Mobile Apps Using PhoneGap and Drupal by Tyler Frankenstein

Questions / Comments ?

● https://drupal.org/u/tyler.frankenstein● https://github.com/signalpoint● http://tylerfrankenstein.com● @FrankensteinTJ

“Thank you!”