fwenzel / cordovasample

Cordova Sample Firefox OS App

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cordova Sample App

This is a Firefox OS App that uses the following external libraries:

If you want to run this you will need to have Cordova installed and a project created

cordova create sample org.mozilla.cordovaSample "Cordova Sample"

cd to the sample directory and delete the www folder. Check out the code into this directory.

git clone https://github.com/mozilla-cordova/cordovasample www

The Geolocation example uses Three.js and Globe.js and functions better on later versions of Firefox OS 1.2 or greater

See Hacks Blog Post for more details https://hacks.mozilla.org/2014/02/building-cordova-apps-for-firefox-os/

Add Firefox OS as a platform:

cordova platform add firefoxos

Make sure to use the cordova plugin add command to add the following plugins:

  • org.apache.cordova.camera
  • org.apache.cordova.contacts
  • org.apache.cordova.device
  • org.apache.cordova.device-motion
  • org.apache.cordova.device-orientation
  • org.apache.cordova.dialogs
  • org.apache.cordova.file
  • org.apache.cordova.geolocation
  • org.apache.cordova.inappbrowser
  • org.apache.cordova.vibration
  • org.apache.cordova.battery-status

Currently you will need to take the manifest.webapp file in the source and copy it to the merges/firefoxos directory.

About

Cordova Sample Firefox OS App


Languages

Language:JavaScript 85.9%Language:CSS 14.1%