dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.27k stars 1.76k forks source link

Support for NFC #5153

Open 3GDXC opened 2 years ago

3GDXC commented 2 years ago

Description

I would like to create a inventory management system using MAUI; warehouses currently use a mixture of Barcodes, QR codes, RFID and NFC tagged products and/or stillages. It would be good if MAUI provided as part of the essentials namespace NFC support for devices.

Public API Changes

var nfc = new NFC(); nfc.event+=processEvent; await nfc.ListenAsync( );

Intended Use-Case

holding the device up to/close to a NFC tag would trigger the event with the event args containing the NFC tag data

3GDXC commented 2 years ago

Also support for RFID as above would be good

ghost commented 2 years ago

We've moved this issue to the Future milestone. This means that it is not going to be worked on for the coming release. We will reassess the issue following the current release and consider this item at that time.

Suleman218 commented 2 years ago

Any update on this issue. I also have requirement of using NFC in my Maui app instead many people have an eye on this. @Redth @jsuarezruiz

jsuarezruiz commented 2 years ago

Any update on this issue. I also have requirement of using NFC in my Maui app instead many people have an eye on this. @Redth @jsuarezruiz

At this moment we are focused in performance and quality (bug fixing). We will take into account requests like this one in the future but for now, you can use the code from community plugins like https://github.com/franckbour/Plugin.NFC

Suleman218 commented 2 years ago

@jsuarezruiz Thanks for the update

notyournick commented 1 year ago

any news? has been a while.

Happy New Year to all.

Amine-Smahi commented 1 year ago

News ?

HeathersZen commented 1 year ago

Bump!

uestadeus commented 1 year ago

Anything?

developerSoluzione1 commented 1 year ago

I took an old Xamarin project and brought it to Maui with basically no changes. Tested in Android and works fine

https://github.com/acaliaro/XamarinDemoNfc

uestadeus commented 1 year ago

I took an old Xamarin project and brought it to Maui with basically no changes. Tested in Android and works fine

https://github.com/acaliaro/XamarinDemoNfc

Also for IOS ?

uestadeus commented 1 year ago

Oh my mistake it s written there only for android. i missed that. thanks anyway

acaliaro commented 1 year ago

I took an old Xamarin project and brought it to Maui with basically no changes. Tested in Android and works fine https://github.com/acaliaro/XamarinDemoNfc

Also for IOS ?

Yes the Xamarin sample was also for iOS but I have not tested in Maui ( I think it should works)

Rigo09 commented 1 year ago

Tomé un antiguo proyecto de Xamarin y lo traje a Maui básicamente sin cambios. Probado en Android y funciona bien

https://github.com/acaliaro/XamarinDemoNfc

Hello, could you please help me with the steps you follow to bring it to MAUI?

acaliaro commented 1 year ago

Tomé un antiguo proyecto de Xamarin y lo traje a Maui básicamente sin cambios. Probado en Android y funciona bien https://github.com/acaliaro/XamarinDemoNfc

Hello, could you please help me with the steps you follow to bring it to MAUI?

https://github.com/acaliaro/MauiAppTestNfcAndroid

andreas-spindler-mw commented 11 months ago

Any updates?

The Plugin.NFC seems to be not working on newer iOS versions: https://github.com/franckbour/Plugin.NFC/issues/148

kennykanp commented 9 months ago

I've been running tests on both net7.0-ios and net8.0-ios, but I keep encountering this error

Time    Device Name Type    PID Tag Message
Feb  3 18:42:18 Kennys-iPhones  Notice  29865   Xamarin.PreBuilt.iOS(CoreNFC)   -[NFCNDEFReaderSession beginSession]:363
Time    Device Name Type    PID Tag Message
Feb  3 18:46:19 Kennys-iPhones  Notice  29865   Xamarin.PreBuilt.iOS(CoreNFC)   -[NFCNDEFReaderSession _invalidateSessionWithCode:message:finalUIState:activateCallback:]:971 code=4099, finalUIState=0, activateCallback=1
Time    Device Name Type    PID Tag Message
Feb  3 18:46:19 Kennys-iPhones  Error   29865   Xamarin.PreBuilt.iOS(CoreNFC)   -[NFCNDEFReaderSession beginSessionWithConfig:]:443 error:Error Domain=NSCocoaErrorDomain Code=4099 UserInfo={NSDebugDescription=<private>}, errorCode: 0x1003
Amine-Smahi commented 9 months ago

Any update ?

napangelo commented 8 months ago

Hi, any news on the integration of nfc support in maui? is there an approximate date? @jsuarezruiz

Thanks