百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

phonegap-nfc-reader

> 编程语言
开源

PhoneGap NFC 读取器演示

100 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

PhoneGap NFC 读取器演示

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

  • Android
  • Windows Phone 8
  • BlackBerry 10

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

  • Device plugin (included in project)
  • Notification vibration plugin (included in project)
  • phonegap-nfc plugin (included in project)

Android

Requires

  • Android Phone with NFC
  • Android SDK
  • Cordova CLI

Running

$ cordova run android

Windows Phone 8

Requires

  • Windows Phone 8 with NFC
  • Windows Phone 8 SDK
  • Visual Studio 2012

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

  • BlackBerry 10 device with NFC
  • BlackBerry Native SDK
  • Cordova CLI
  • com.blackberry.invoke plugin (included in project)

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

Issues· 11 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

JavaScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言