-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cant scan NFC tag #10
Comments
Hey, which device are you testing on? |
Samsung Galaxy s6 Edge, and Samsung Galaxy a3 Skickat från min Samsung Galaxy-smartphone. -------- Originalmeddelande -------- Hey, which device are you testing on? You are receiving this because you authored the thread. |
Unfortunately seems that your devices do not support Mifare cards ( http://www.shopnfc.it/en/content/7-nfc-device-compatibility ), do you have others NFC Tags to test? |
I havet actully tried it on our test devisen that is a Samsung xcover. And same resultat there... Skickat från min Samsung Galaxy-smartphone. -------- Originalmeddelande -------- Unfortunately seems that your devices do not support Mifare cards ( http://www.shopnfc.it/en/content/7-nfc-device-compatibility ), do you have others NFC Tags to test? You are receiving this because you authored the thread. |
A question. When i use NFC Reader from Play store. i can scan nfc tags with all my devices.. why cant the NFCForms do it? Skickat från min Samsung Galaxy-smartphone. -------- Originalmeddelande -------- Unfortunately seems that your devices do not support Mifare cards ( http://www.shopnfc.it/en/content/7-nfc-device-compatibility ), do you have others NFC Tags to test? You are receiving this because you authored the thread. |
The typer of tag is Mifare ultralight and is working on all The devices im using. Does your code work for this type of tag? Skickat från min Samsung Galaxy-smartphone. -------- Originalmeddelande -------- Unfortunately seems that your devices do not support Mifare cards ( http://www.shopnfc.it/en/content/7-nfc-device-compatibility ), do you have others NFC Tags to test? You are receiving this because you authored the thread. |
Yes, it should. But you're filtering for Classic only. Try adding MIfareUltralight in new string[] { |
Will try it now and see what happens :) |
My main goal is to read the tag and receive the Id of the NFC tag. Nothing more, dont need anything else to happen, no opening of intents and so on. |
Nop, still nothing happens.. :( |
Is it possible that the card is not Ndef formatted? |
This is what ive change in the code, is this what you meant by setting filters to null? |
When im using Google Play Store app "NFC Reader" and i scan a nfc tag, it says following in the phone: Dont know if this changes anything of your thoughts.. |
O then try using: new string[] { |
Is this what you mean, i guess i still need to have "NFCTechs.MifareUltralight" in the second array? This still didnt work though, either of those solutions |
Funny thing, When i have the "NFC Reader" app installed, and running my app, then i scan a NFC tag, it opens "NFC Reader" as it is registered as a NFC reader app, and mine isnt. Is this only because i just now cant get the code right, or do i need to do any settings to mark the app as a NFC reader app (more than the permission in manifest)? |
This method doesnt seem to be called at any time at all. Doesnt this method apply the NFC logic to the new entered view in Xamarin.Forms? |
Yep, it shouldn't open other apps if yours it's properly configured :) SO basically, each of the inside arrays is considered independently and the activity is considered a match is any single inside array matches the tag that was discovered. This provides AND and OR semantics for filtering desired techs. It's my fault I thought it was OR and then AND :) Try with: |
OnNewIntent doesn't get called because the intent doesn't mach any filter |
Houston, we got a connection. Thanks ALOT for the help! |
U're welcome :) |
Do you have any code that turns that Tag Id byte array to a string? |
Hello
|
Esta es la solución al problema cuando no llama el OnNewIntent. |
Hi, i've tried to implement your nuget and follow your installation guide for Android.
To sum it up ive done this in MainActivity:
And in the MainMenuPage.xaml.cs in my shared project:
But when i let my phone scan a NFC tag, nothing happens at all. Of course ive turn on the permission.nfc in my manifest.
/E
The text was updated successfully, but these errors were encountered: