Skip to content

don/phonegap-nfc-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 version will open the application when a tag with a Mime Media Record of type "text/pg" is scanned

Supported Platforms

See the BlackBerry7 tag for the last version to support BlackBerry 7. The code tagged BlackBerry7 should also support BlackBerry 10.

Cordova CLI

Cordova 3.1 or greater is required. User npm to install Cordova. npm is part of nodejs.

$ npm install cordova -g

Plugins

Android

Requires

Running

$ cordova run android

Windows Phone 8

Requires

Building

Build and deploy with Visual Studio.

This code was test on a Nokia Lumia 825.

WP8 Problems

Cordova CLI 3.1.0-0.2.0 is broken (or misconfigured) and won't deploy the plugins, use Visual Studio to deploy.

Windows Phone NFC support is sketchy. Windows wants to grab and handle all NFC tags before the app does. This means that you'll get prompted by Windows to open URIs or get error messages for tags that Windows can't handle like Mime Media Tags. Dismiss the errors and you should be able to see the data in phonegap-nfc-reader. It's not ideal. Microsoft says they know about this. Maybe it will be fixed in Windows Phone 8.1?

PhoneGap NFC

See phonegap-nfc for more info