Giter VIP home page Giter VIP logo

phonegap-nfc-reader's Introduction

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

Supported Platforms

Android

Requires

  • Android Phone with NFC
  • Android SDK
  • PhoneGap 2.3.0 (included in project)
  • phonegap-nfc-0.4.2 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 7

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.

BlackBerry 10

Requires

Configuration

Copy webworks/project.properties.template to webworks/project.properties. Edit the entries for qnx.

qnx.bbwp.dir=/Developer/SDKs/Research In Motion/BlackBerry 10 WebWorks SDK 1.0.4.5
qnx.sigtool.password=secret
qnx.device.ip=192.168.1.100
qnx.device.password=secret2
qnx.device.pin=optional

Building

Use ant to build the code and install on your phone

$ ant qnx load-device

To run the app with the Web Inspector enabled

$ ant qnx debug-device

This code was test on a BlackBerry 10 Dev Alpha B (GSM) with 10.0.9.1675 Bundle 395620.

Windows Phone 8

Requires

  • Windows Phone 8 with NFC
  • Windows Phone 8 SDK
  • Visual Studio 2012
  • PhoneGap 2.3.0 (included in project)
  • phonegap-nfc-0.4.2 plugin (included in project)

Building

Build and deploy with Visual Studio.

This code was test on a Nokia Lumia 825.

PhoneGap NFC

See phonegap-nfc for more info

phonegap-nfc-reader's People

Contributors

don avatar m00sey avatar gtanner avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.