Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

NFC modules examples - tag not reading through app

$
0
0

Hi, I am trying to use the Titanium NFC module to create a simple app that reads and writes NFC tags. The module (found here: https://marketplace.appcelerator.com/apps/5483) includes examples which I have imported and have run on a Samsung Galaxy s3. I'm trying out the TagWriter example. The code can be found here (https://github.com/appcelerator-modules/ti.nfc/tree/master/android/example/TagWriter/app), I haven't modified it expect to paste the following into tiapp.xml as instructed

<android xmlns:android="http://schemas.android.com/apk/res/android">
     <manifest>
       <application>
         <activity android:name=".TagwriterActivity"
             android:label="TagWriter" android:theme="@style/Theme.Titanium"
             android:configChanges="keyboardHidden|orientation"
             android:launchMode="singleTask">
           <intent-filter>
             <action android:name="android.intent.action.MAIN" />
             <category android:name="android.intent.category.LAUNCHER" />
           </intent-filter>
        </activity>
       </application>
     </manifest>
   </android>
However, when the app is open and I scan a tag, the phone overrides and handles the tag rather than the app displaying the tag information and giving me the option to write to it as it is supposed to.

For reference, these are the tags I am using: http://buynfctags.com/gototags-nfc-sticker-ntag213/

Does anyone have any idea why this unmodified example is not handling the scanned tag and working correctly?

Thanks


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>