Comments (12)
Is it really throwing this exception (= app crashes) or just logging it or is just the debugger notifying you that this exception has been thrown?
Spass.initialize
is surrounded by a try-catch. It would be weird.
from xamarin-fingerprint.
The app is not crashing but it is not returning the enum value to proceed further.
I ran the above code in Debug mode.
Also When i run on Release mode i encountered "LinkAssemblies task failed unexpectedly" I am using xamarin studio.
LinkAssemblies Error message:
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(5,5): Error MSB4018: The "LinkAssemblies" task failed unexpectedly. Xamarin.Android.XamarinAndroidException: error XA2006: Reference to metadata item 'Android.Hardware.Fingerprints.FingerprintManager/AuthenticationCallback' (defined in 'Plugin.Fingerprint, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null') from 'Plugin.Fingerprint, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null' could not be resolved. ---> Mono.Cecil.ResolutionException: Failed to resolve Android.Hardware.Fingerprints.FingerprintManager/AuthenticationCallback at Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference) at MonoDroid.Tuner.MonoDroidMarkStep.MarkType(TypeReference reference) at Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference) at MonoDroid.Tuner.MonoDroidMarkStep.MarkType(TypeReference reference) at Mono.Linker.Steps.MarkStep.InitializeType(TypeDefinition type) at Mono.Linker.Steps.MarkStep.InitializeAssembly(AssemblyDefinition assembly) at Mono.Linker.Steps.MarkStep.Initialize() at Mono.Linker.Steps.MarkStep.Process(LinkContext context) at Mono.Linker.Pipeline.Process(LinkContext context) at MonoDroid.Tuner.Linker.Process(LinkerOptions options, LinkContext& context) at Xamarin.Android.Tasks.LinkAssemblies.Execute() --- End of inner exception stack trace --- at Xamarin.Android.Diagnostic.Error(Int32 code, Exception innerException, String message, Object[] args) at Xamarin.Android.Tasks.LinkAssemblies.Execute() at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext() (MSB4018) (fingerprint)
from xamarin-fingerprint.
I have solved the linker error - I had to modify the build settings but still i am not getting any enum from GetAvailabilityAsync() from my android application.
from xamarin-fingerprint.
Do you build against a Android SDK >= 23?
from xamarin-fingerprint.
target version= 19
from xamarin-fingerprint.
I mean compile Sdk Version.
from xamarin-fingerprint.
I am using Xamarin studio IDE . i checked the entire project settings there are no options to change compile sdk version. I even checked csproj file.
from xamarin-fingerprint.
In the project file it should be here (example): https://github.com/smstuebe/xamarin-fingerprint/blob/master/src/Plugin.Fingerprint.Android/Plugin.Fingerprint.Android.csproj#L18
I'll look up where to set it in Xamarin Studio, when I'm at home.
from xamarin-fingerprint.
This is the Target Framework. Should be >= 6.0
This must be set to automatic or something >= API 23
from xamarin-fingerprint.
Finally it it is working.I changed the target version 23 .I am able to get the enum value.
Here are the logs from logcat.
12-01 09:40:43.881: W/SamsungFingerprintImplementation(16876): com.samsung.android.sdk.SsdkUnsupportedException: This device does not provide FingerprintService. 12-01 09:40:43.881: W/SamsungFingerprintImplementation(16876): at com.samsung.android.sdk.pass.Spass.initialize(Unknown Source) 12-01 09:40:43.901: D/fingerprint(16876): Availability enum NoApi
Thanks!
Really appreciate it!
from xamarin-fingerprint.
Ok. I'll document this and look up if it's possible to check the compile version at runtime to throw a meaningful exception.
from xamarin-fingerprint.
Documentation added. Can't throw an exception, because the type load exception will be thrown when the lib gets loaded.
from xamarin-fingerprint.
Related Issues (20)
- Authenticate in WebAPI HOT 1
- How do you use biometric sensors? HOT 4
- Crash with 2.1.5 in UWP on checking availability, same code works with 2.1.5 on Android, and on all platforms with 2.1.4 HOT 4
- The Authenticate request fails with "UnknownError" if the app is completely unloaded on iOS HOT 2
- iOS crashes when AuthenticationRequestConfiguration reason is empty string. HOT 1
- CA1416 analyzer errors (This call site is reachable on...) for .NET MAUI version HOT 5
- 'CrossFingerprint' does not contain a definition for 'SetCurrentActivityResolver' HOT 1
- Plugin version 2.1.5 on Windows UWP reports "This functionality is not implemented in the portable version of this assembly" HOT 4
- Android Implementation allow to bypass the security HOT 7
- Facelock is not working for android HOT 7
- "Try Face ID Again" does nothing on click. HOT 1
- App hangs under iOS 16 Beta at startup HOT 1
- Allow possibility to disable face unlock on Android HOT 7
- Bitcode issue in the plugin when we submit to App Store. HOT 1
- LAStatus.SystemCancel does not return FingerprintAuthenticationResultStatus.Canceled HOT 2
- Failed resolution of: Landroidx/lifecycle/ViewModelProvider$KeyedFactory; HOT 2
- iOS vulnerable to biometric bypass via "objection" HOT 3
- App becomes unresponsive when using plugin.fingerprint on net8-pre5 HOT 3
- Enter code Error: Fallback authentication - MAUI iOS HOT 1
- Release Package & Activity HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xamarin-fingerprint.