Closed gravityFlower closed 2 years ago
While it was an implementation error it would still be good to have a general flow plan of how the commmunication happens.
The original code implementer called await StopListeningAsync
after they found the tag. Processing of the tag still happened after this call without problems. So i am not sure why it worked all the time. I am assuming that the stop was queued, the communication to the card started, data were read and therefore the call to stop listening was postponed.
Again i am missing a description of the (general) flow of communication for nfc. Which calls should occur in which order. Android is missing it and definitely Microsofts api documentation, which in most cases just a raw copy with reference to the andoid sdk.
Yes, all Xamarin.Android does is provide machine generated bindings for Google's Android API. We unfortunately do not have much expertise in how to use them correctly, and can only really point to Google's documentation (if it exists).
Steps to Reproduce
Expected Behavior
Continue to work like is does on a Samsung Galaxy XCover 3, where i am able to send APDU commands to the smart card and receive data.
Actual Behavior
Code throws Java.IO.IOException on Connect and communication to the smart card fails
Running the code on a Samsung Galaxy XCover 3 does work, but not on a Galaxy XCover 4s (Android 11) or Nokia 7 Plus (Android One/10)
Version Information
Compiled with Android 11(R)
Xamarin.Android.Support.Animated.Vector.Drawable.28.0.0.3 Xamarin.Android.Support.Annotations.28.0.0.3 Xamarin.Android.Support.Compat.28.0.0.3 Xamarin.Android.Support.Core.UI.28.0.0.3 Xamarin.Android.Support.Core.Utils.28.0.0.3 Xamarin.Android.Support.Design.28.0.0.3 Xamarin.Android.Support.Fragment.28.0.0.3 Xamarin.Android.Support.Media.Compat.28.0.0.3 Xamarin.Android.Support.Transition.28.0.0.3 Xamarin.Android.Support.v7.AppCompat.28.0.0.3 Xamarin.Android.Support.v7.RecyclerView.28.0.0.3 Xamarin.Android.Support.Vector.Drawable.28.0.0.3
Microsoft Visual Studio Community 2019 Version 16.11.5 VisualStudio.16.Release/16.11.5+31729.503 Microsoft .NET Framework Version 4.8.04084
Installierte Version: Community
Microsoft Visual Studio Tools for Applications 2019 00435-60000-00000-AA183 Microsoft Visual Studio Tools for Applications 2019
Visual C++ 2019 00435-60000-00000-AA183 Microsoft Visual C++ 2019
ADL Tools Service Provider 1.0 This package contains services used by Data Lake tools
Allgemeine Azure-Tools 1.10 Bietet allgemeine Dienste für die Verwendung durch Azure Mobile Services und Microsoft Azure-Tools.
ASA Service Provider 1.0
ASP.NET and Web Tools 2019 16.11.75.64347 ASP.NET and Web Tools 2019
ASP.NET Web Frameworks and Tools 2019 16.11.75.64347 Weitere Informationen finden Sie unter https://www.asp.net/.
Azure App Service-Tools v3.0.0 16.11.75.64347 Azure App Service-Tools v3.0.0
Azure Data Lake Node 1.0 This package contains the Data Lake integration nodes for Server Explorer.
Azure Data Lake Tools for Visual Studio 2.6.3000.0 Microsoft Azure Data Lake Tools for Visual Studio
Azure Functions and Web Jobs Tools 16.11.75.64347 Azure Functions and Web Jobs Tools
Azure Stream Analytics Tools for Visual Studio 2.6.3000.0 Microsoft Azure Stream Analytics Tools for Visual Studio
C#-Tools 3.11.0-4.21403.6+ae1fff344d46976624e68ae17164e0607ab68b10 C#-Komponenten, die in der IDE verwendet werden. Abhängig von Ihrem Projekttyp und den zugehörigen Einstellungen kann eine andere Version des Compilers verwendet werden.
Cookiecutter 16.11.21196.2 Stellt Tools zum Suchen, Instanziieren und Anpassen von Vorlagen im Cookiecutter-Format bereit.
Dotfuscator Community Edition 6.3.0+8b29d6f4a2 PreEmptive Protection - Dotfuscator CE
Erweiterungen der Visual Studio-Containertools 1.0 Hiermit werden Container in Visual Studio angezeigt, verwaltet und diagnostiziert.
Extensibility Message Bus 1.2.6 (master@34d6af2) Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.
IntelliCode-Erweiterung 1.0 Detaillierte Informationen zur IntelliCode Visual Studio-Erweiterung
Microsoft Azure-Tools für Visual Studio 2.9 Support für Azure Cloud Services-Projekte
Microsoft Azure HDInsight Azure Node 2.6.3000.0 HDInsight Node under Azure Node
Microsoft Azure Hive Query Language Service 2.6.3000.0 Language service for Hive query
Microsoft Azure Stream Analytics Language Service 2.6.3000.0 Language service for Azure Stream Analytics
Microsoft Azure Stream Analytics Node 1.0 Azure Stream Analytics Node under Azure Node
Microsoft Continuous Delivery Tools für Visual Studio 0.4 Die Konfiguration von Azure DevOps-Pipelines von der Visual Studio-IDE aus wird vereinfacht.
Microsoft JVM Debugger 1.0 Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
Microsoft MI-Based Debugger 1.0 Provides support for connecting Visual Studio to MI compatible debuggers
Microsoft Visual C++-Assistenten 1.0 Microsoft Visual C++-Assistenten
Microsoft Visual Studio-Tools für Container 1.2 Jetzt können Sie Ihre ASP.NET Core-Anwendung in der Zielumgebung entwickeln, ausführen und überprüfen. Drücken Sie F5, um die Anwendung direkt in einem Container mit Debugfunktionen auszuführen, oder STRG+F5 zum Bearbeiten und Aktualisieren Ihrer Anwendung, ohne den Container erneut erstellen zu müssen.
Mono Debugging for Visual Studio 16.10.15 (552afdf) Support for debugging Mono processes with Visual Studio.
Node.js-Tools 1.5.30526.3 Commit Hash:c09c81113bcbc86d57943fcdd67e82434263d61d Fügt Unterstützung für das Entwickeln und Debuggen von Node.js-Apps in Visual Studio hinzu
NuGet-Paket-Manager 5.11.0 NuGet-Paket-Manager in Visual Studio. Weitere Informationen zu NuGet finden Sie unter https://docs.nuget.org/.
ProjectServicesPackage Extension 1.0 ProjectServicesPackage Visual Studio Extension Detailed Info
Python 16.11.21196.2 Stellt IntelliSense, Projekte, Vorlagen, Debuggen, interaktive Fenster und weitere Unterstützung für Python-Entwickler bereit.
Python – Conda-Unterstützung 16.11.21196.2 Conda-Unterstützung für Python-Projekte.
Python – Django-Unterstützung 16.11.21196.2 Stellt Vorlagen und Integration für das Django-Webframework bereit.
Python – Unterstützung für die Profilerstellung 16.11.21196.2 Profilerstellungsunterstützung für Python-Projekte.
Razor (ASP.NET Core) 16.1.0.2122504+13c05c96ea6bdbe550bd88b0bf6cdddf8cde1725 Provides languages services for ASP.NET Core Razor.
SQL Server Data Tools 16.0.62107.28140 Microsoft SQL Server Data Tools
SQL Server Integration Services 15.0.2000.157 Microsoft SQL Server Integration Services-Designer Version 15.0.2000.157
Syntax Visualizer 1.0 An extension for visualizing Roslyn SyntaxTrees.
ToolWindowHostedEditor 1.0 Hosting json editor into a tool window
TypeScript-Tools 16.0.30526.2002 TypeScript-Tools für Microsoft Visual Studio
VC-Paket für Microsoft Visual Studio 1.0 VC-Paket für Microsoft Visual Studio
Visual Basic-Tools 3.11.0-4.21403.6+ae1fff344d46976624e68ae17164e0607ab68b10 Visual Basic-Komponenten, die in der IDE verwendet werden. Abhängig von Ihrem Projekttyp und den zugehörigen Einstellungen kann eine andere Version des Compilers verwendet werden.
Visual F# Tools 16.11.0-beta.21322.6+488cc578cafcd261d90d748d8aaa7b8b091232dc Microsoft Visual F# Tools
Visual Studio-Tools für Container 1.0 Visual Studio-Tools für Container
Visual Studio-Tools für Kubernetes 1.0 Visual Studio-Tools für Kubernetes
Visual Studio Code-Debugadapter-Hostpaket 1.0 Interopebene zum Hosten der Visual Studio Code-Adapter in Visual Studio
VisualStudio.DeviceLog 1.0 Informationen zum Paket
VisualStudio.Foo 1.0 Information about my package
VisualStudio.Mac 1.0 Mac Extension for Visual Studio
Xamarin 16.11.000.190 (d16-11@2391ed9) Visual Studio-Erweiterung, um Entwicklung für Xamarin.iOS und Xamarin.Android zu ermöglichen.
Xamarin Designer 16.11.0.17 (remotes/origin/11e0001f0b17269345e80b58fb3adf1ba4efe2cd@11e0001f0) Visual Studio-Erweiterung zum Aktivieren der Xamarin Designer-Tools in Visual Studio.
Xamarin Templates 16.10.5 (355b57a) Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.
Xamarin.Android SDK 11.4.0.5 (d16-11/7776c9f) Xamarin.Android Reference Assemblies and MSBuild support. Mono: c633fe9 Java.Interop: xamarin/java.interop/d16-11@48766c0 ProGuard: Guardsquare/proguard/v7.0.1@912d149 SQLite: xamarin/sqlite/3.35.4@85460d3 Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-11@683f375
Xamarin.iOS and Xamarin.Mac SDK 15.0.0.8 (0796d78dc) Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Log File