Robin Coffee Cordova App
JavaScript Java Objective-C CSS D CoffeeScript Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
hooks
platforms
plugins
www
.gitignore
Gruntfile.coffee
README.md
config.xml
info.txt
package.json

README.md

Robin

Development

Package.json

This structure has two package.json files. The one in the root of the directory is for the Grunt workflow. The package.json in the www contains the browserify-ready libraries.

Testing

Android

cordova emulate android --debug

ddms

Flow

Default state is NOMORE

Offline

  1. Coffee is being made. Machine is switched on.

Spark

  1. Spark sends POST request to push server.

Server

  1. Push server sends push notification to all clients.

Mobile

  1. Notification is received and is valid for 1 hour.
  2. Save moment (timestamp) and set the app in state BREWING
  3. Check (interval) each 5 minutes for current state.
  4. After 30 minutes in state BREWING set to state READY
  5. Check (interval) each 5 minutes for current state.
  6. After 30 minutes in state READY set to state NOMORE

Sub scenarios

Pause / Resume

When the app is paused, stop all intervals. Subsequently, when the app is resumed, start by checking state and resume interval checking.

Offline

Show overlay message that tells the user, his phone is offline.

Robin

If you tap Robin, the phone vibrates and yells something.