PhoneGap NFC reader demo
JavaScript Other
Pull request Compare This branch is 115 commits behind don:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
android
webworks
www
.gitignore
README.md

README.md

PhoneGap NFC Reader Demo

Simple web app that reads an NDEF Message from a NFC tag.

The application will read NDEF tags when running.

The android will open the application when a tag with a Mime Media Record of type "text/pg" is scanned

Android

Requires

  • Android Phone with NFC
  • Android SDK
  • PhoneGap 1.6.1+ (included in project)
  • phonegap-nfc plugin (included in project)

Configuration

Generate a local.properties file using the android tool.

$ android update project -p

Building

Use ant to build the code and install on your phone

$ ant debug install

Blackberry

Requires

Configuration

Copy webworks/project.properties.template to webworks/project.properties. Edit the entries for blackberry.bbwp.dir= and blackberry.sigtool.password=.

blackberry.bbwp.dir=/Developer/SDKs/Research\ In\ Motion/BlackBerry\ WebWorks\ SDK\ 2.3.1.5
blackberry.sigtool.password=secret

Building

Use ant to build the code and install on your phone

$ ant blackberry load-device

Known Issues

If you get a ControlledAccessException when registering the NFC listener, the version of the OS is too old. Try version 7.0.0.337 (bundle 1603) or higher.

This code was test on a Blackberry Bold 9900 (GSM) with 7.1.0.284 Bundle 998.

PhoneGap NFC

See phonegap-nfc for more info