PhoneGap Day 2016

Essentials Workshop

Start

What You Will Learn

In this workshop we will walk through several lessons designed to point out specific things you should learn about building hybrid mobile apps using a sample template developed by the PhoneGap team called Star Track. This app interacts with the Spotify Web API and was built with Framework7, a mobile UI framework. The chosen framework could have been anything but the goal was to use something with a familiar syntax and since Framework7 has a built-in DOM manipulation library with the same syntax as jQuery, it’s the easiest to get started with. We will enhance the Star Track app with some additional features and the resulting app can be found in this PhoneGap Day EU Star Track repo from my github.

We will focus less on the Framework7 library and more on the certain aspects of mobile development you should be most aware of when building hybrid apps in general. This includes best practices and performance techniques as well as adding and using Cordova plugins to add additional functionality that will enhance your apps and provide a more native experience.

The sample app project is located on my associated GitHub repo here. The slides that I used in the workshop at PhoneGap Day US can be found here.

Dependencies

We will be using PhoneGap, Framework7 and the Font Awesome Icon Font library to help us build this app. The following plugins are also used in the final version.

  <plugin name="cordova-plugin-whitelist" spec="~1.2.0" />
  <plugin name="cordova-plugin-statusbar" spec="~2.1.3" />
  <plugin name="cordova-plugin-media" spec="~1.0.1" />
  <plugin name="cordova-plugin-console" spec="~1.0.1" />
  <plugin name="cordova-plugin-x-socialsharing" spec="~5.0.12" />
  <plugin name="cordova-plugin-network-information" spec="~1.2.1" />

What You Will Learn

Requirements

A mobile device or a Mobile SDK is not a requirement for this tutorial. You will able to test your application in the browser or with the PhoneGap Developer App with some limitations. If you want the full support of the native APIs then you will need the mobile SDK for that platform (iOS SDK, Android SDK, etc.) installed on your system.

Useful Resources

  1. Simple Spotify Browser - a tutorial to walk you through build out a simple spotify browser (different than Star Track) from start to finish with helpful lessons along the way.
  2. Pocket Guide - a similar app and workshop with a vanilla approach to a single page architecture and walks through specific tips and tricks to make your app feel and perform natively outside of a specific UI framework doing the work for you.
  3. PhoneGap Workshop - a similar app with a workshop that goes step by step creating the routing, templates and views to understand Single Page Architecture.
  4. Conference Tracker - a conference app built with Ionic/AngularJS with some more advanced features

Issues/Feedback

Slides

Presentation Slides