Giter Site home page Giter Site 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 version will open the application when a tag with a Mime Media Record of type "text/pg" is scanned. On BlackBerry 10, the application will open when any NFC tag is scanned.

Supported Platforms

See the BlackBerry7 tag for the last version to support BlackBerry 7

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?

BlackBerry 10

Requires

Running

See the PhoneGap BlackBerry 10 Platform Guide if you need help getting your environment configured.

$ cordova run blackberry10 --devicepass 123456

This code was test on a BlackBerry Z10.

BlackBerry 10 Problems

Cordova CLI 3.1.0-0.2.0 has a problem with the engines tag in plugin.xml. If you want to install this in your own project, you may need to delete the engines section from plugin.xml before installing until a newer version of Cordova is released.

PhoneGap NFC

See phonegap-nfc for more info

phonegap-nfc-reader's People

Contributors

don avatar m00sey avatar gtanner avatar

Watchers

MUHAMMAD MANNIR AHMAD avatar  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.