PhoneGap NFC demo - writes peer to peer and reads tags
JavaScript Other
Latest commit 2c1df90 Jun 23, 2014 @don readme
Permalink
Failed to load latest commit information.
assets/www using released 0.2.0 version Sep 9, 2011
lib using released 0.2.0 version Sep 9, 2011
res updates to work with phonegap-nfc 0.2.0 Sep 8, 2011
src/com/chariotsolutions/nfc/rockpaperscissors initial generated android project Jun 29, 2011
.classpath phonegap-nfc-0.1.3 and phonegap-1.0.0 Aug 1, 2011
.gitignore phonegap-nfc-0.1.3 and phonegap-1.0.0 Aug 1, 2011
.project
AndroidManifest.xml phonegap 1.0.0rc1-SNAPSHOT Jul 16, 2011
README.md readme Jun 22, 2014
default.properties initial generated android project Jun 29, 2011

README.md

Rock Paper Scissors

Demo web app that allows you to play Rock Paper Scissors with another user via NFC

  • Reads NFC tags
  • Writes NFC peer to peer messages

Warning

The RockPaperScissors demo was written for Android 2.3.3, where the phone sent the NFC message to the peer immediately. Later versions of Android changed how this worked. Google added "push to beam" functionality which essentially breaks this demo.

Requires

  • Google Nexus S phone
  • PhoneGap 1.0
  • phonegap-nfc plugin

Building

PhoneGap 1.0 is included in the project

Build instructions assume you have the following installed

  • Android SDK
  • Android API Level 10 (2.3.3)
  • Apache Ant
  • Java SDK

$ git clone https://github.com/don/rockpaperscissors $ cd rockpaperscissors/ $ ln -s lib libs $ android update project -p . -t android-10 $ ant debug install

See phonegap-nfc for more info