I am trying to write a very simple app that can read NDEF data from NFC tag.
I have tried examples available here but I couldn't make them work. https://github.com/appcelerator-modules/ti.nfc/tree/master/android/example
My setup
1) NFC tag contains following data
price=149.00,item=table,symbol=£2) added following intent filters to tiapp.xml under android manifest
<intent-filter> <action android:name="android.nfc.action.NDEF_DISCOVERED"/> <category android:name="android.intent.category.DEFAULT"/> <data android:mimeType="text/plain"/> </intent-filter> <intent-filter> <action android:name="android.nfc.action.NDEF_DISCOVERED"/> <category android:name="android.intent.category.DEFAULT"/> <data android:scheme="http"/> </intent-filter>3) this is how my index.js under controllers folder looks like
Problem
App starts normal but when I scan NFC tag app never reads the tag, here are the contents of the intent object
{ bubbles=false, source=org.appcelerator.titanium.proxy.ActivityProxy@427f7000, type=newintent, intent=org.appcelerator.titanium.proxy.IntentProxy@42cfa758, cancelBubble=false }.
Can you someone point out what am i missing?
.