/phonegap-nfc-reader

PhoneGap NFC reader demo

Primary LanguageJavaScript

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 2.0.0 (included in project)
  • phonegap-nfc-0.4.1 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