An open API service indexing awesome lists of open source software.

https://github.com/don/nfc-launch

Demo - launch a Cordova app when scanning a NFC tag
https://github.com/don/nfc-launch

Last synced: 7 months ago
JSON representation

Demo - launch a Cordova app when scanning a NFC tag

Awesome Lists containing this project

README

          

# NFC Launch

Launch a Cordova app by scanning a NFC tag.

Uses [phonegap-nfc](http://github.com/chariotsolutions/phonegap-nfc).

### Create Sample NFC Tag

Use [NFC Tag Writer](https://play.google.com/store/apps/details?id=com.nxp.nfc.tagwriter&hl=en) to create a NFC tag with the following data

* TNF: Well Known
* Type: URI
* Payload: http://example.com/foo

Details
* Launch NFC Tag Writer
* Choose Write tags
* Choose New dataset
* Choose Link
* Enter http://example.com/foo in the Website field
* Do **not** enter anything in the optional title field.

### Intent Filter

The intent filter is defined in AndroidManifest.xml





# Compile and Run

Build and deploy to an Android phone using Cordova 5.0.0

cordova run --device

While the app is running, Scan an NFC tag to ensure foreground dispatch works.

Close the app

Scan the NFC tag you created. The app will launch and display the tag info.