Comments (4)
Can you share a repo that I can help you with?
from nativescript-fingerprint-auth.
Git repo: https://github.com/domzinhuu/finger
so... this is the error and happen only when i click on de button "On/off" and then i finish the app to restart again. But if i click on the button and only refresh the code on vscode the app restart and work fine.
JS: Error in fingerprint-auth.verifyFingerprint: TypeError: Cannot read property 'getSupportFragmentManager' of undefined
JS: ANGULAR BOOTSTRAP DONE. 3182
JS: ERROR Error: Uncaught (in promise): Error: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources$Theme android.content.Context.getTheme()' on a null object reference
JS: android.app.AlertDialog.resolveDialogTheme(AlertDialog.java:222)
JS: android.app.AlertDialog$Builder.<init>(AlertDialog.java:452)
JS: com.tns.Runtime.callJSMethodNative(Native Method)
JS: com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1088)
JS: com.tns.Runtime.callJSMethodImpl(Runtime.java:970)
JS: com.tns.Runtime.callJSMethod(Runtime.java:957)
JS: com.tns.Runtime.callJSMethod(Runtime.java:941)
JS: com.tns.Runtime.callJSMethod(Runtime.java:933)
JS: com.tns.NativeScriptActivity.onStart(NativeScriptActivity.java:38)
JS: android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1270)
JS: android.app.Activity.performStart(Activity.java:6704)
JS: android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2641)
JS: android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2743)
JS: android.app.ActivityThread.-wrap12(ActivityThread.java)
JS: android.app.ActivityThread$H.handleMessage(ActivityThread.java:1490)
JS: android.os.Handler.dispatchMessage(Handler.java:102)
JS: android.os.Looper.loop(Looper.java:154)
JS: android.app.ActivityThread.main(ActivityThread.java:6165)
JS: java.lang.reflect.Method.invoke(Native Method)
JS: com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:888)
JS: com.android.internal.os.ZygoteInit.main(ZygoteInit.java:778)
JS: Error: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources$Theme android.content.Context.getTheme()' on a null object reference
JS: android.app.AlertDialog.resolveDialogTheme(AlertDialog.java:222)
JS: android.app.AlertDialog$Builder.<init>(AlertDialog.java:452)
JS: com.tns.Runtime.callJSMethodNative(Native Method)
JS: com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1088)
JS: com.tns.Runtime.callJSMethodImpl(Runtime.java:970)
JS: com.tns.Runtime.callJSMethod(Runtime.java:957)
JS: com.tns.Runtime.callJSMethod(Runtime.java:941)
JS: com.tns.Runtime.callJSMethod(Runtime.java:933)
JS: com.tns.NativeScriptActivity.onStart(NativeScriptActivity.java:38)
JS: android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1270)
JS: android.app.Activity.performStart(Activity.java:6704)
JS: android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2641)
JS: android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2743)
JS: android.app.ActivityThread.-wrap12(ActivityThread.java)
JS: android.app.ActivityThread$H.handleMessage(ActivityThread.java:1490)
JS: android.os.Handler.dispatchMessage(Handler.java:102)
JS: android.os.Looper.loop(Looper.java:154)
JS: android.app.ActivityThread.main(ActivityThread.java:6165)
JS: java.lang.reflect.Method.invoke(Native Method)
JS: com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:888)
JS: com.android.internal.os.ZygoteInit.main(ZygoteInit.java:778)
JS: at createAlertDialog (file:///data/data/org.nativescript.finger/files/app/tns_modules/tns-core-modules/ui/dialogs/dialogs.js:12:17)
JS: at file:///data/data/org.nativescript.finger/files/app/tns_modules/tns-core-modules/ui/dialogs/dialogs.js:97:27
JS: at new ZoneAwarePromise (file:///data/data/org.nativescript.finger/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:777:29)
JS: at Object.alert (file:///data/data/org.nativescript.finger/files/app/tns_modules/tns-core-modules/ui/dialogs/dialogs.js:94:12)
JS: at file:///data/data/org.nativescript.finger/files/app/app.component.js:22:29
JS: at ZoneDelegate.invoke (file:///data/data/org.nativescript.finger/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:365:26)
JS: at Object.onInvoke (file:///data/data/org.nativescript.finger/files/app/tns_modules/@angular/core/bundles/core.umd.js:4783:33)
JS: at ZoneDelegate.invoke (file:///data/data/org.nativescript.fing
JS: er/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:364:32)
JS: at Zone.run (file:///data/data/org.nativescript.finger/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:125:43)
JS: at file:///data/data/org.nativescript.finger/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:761:57
JS: at ZoneDelegate.invokeTask (file:///data/data/org.nativescript.finger/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:398:31)
JS: at Object.onInvokeTask (file:///data/data/org.nativescript.finger/files/app/tns_modules/@angular/core/bundles/core.umd.js:4774:33)
JS: at ZoneDelegate.invokeTask (file:///data/data/org.nativescript.finger/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:397:36)
JS: at Zone.runTask (file:///data/data/org.nativescript.finger/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:165:47)
JS: at Function.drainMicroTaskQueue (file:///data/data/org.nativescript.finger/files/app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:593:35)
ActivityManager: Displayed org.nativescript.finger/com.tns.NativeScriptActivity: +3s519ms
``
from nativescript-fingerprint-auth.
Hi, thanks for that demo app, but unfortunately I can't reproduce the crash with it. Looking at the code I'd advise to not trigger the fingerprint UI before the page has loaded, so ngOnInit
is probably not the best place. To check if that's the problem, please test triggering the scanner from a button.
Also, I can't find useCustomAndroidUI
in your code, so I'm not sure we're looking at the same thing.
from nativescript-fingerprint-auth.
Thanks for the answer, i'll try your tips and i'm back later with result.
from nativescript-fingerprint-auth.
Related Issues (20)
- FingerPrintManager deprecated HOT 1
- Touch ID strange behavior IOS13 HOT 7
- ios13 problem HOT 2
- Build falied with exit code 1 HOT 2
- Issue with cancel on Samsung S10 HOT 2
- On setting useCustomAndroidUI in Android, popup button color seems to be broken HOT 7
- fingerprint-auth.available: TypeError: Cannot read property 'isHardwareDetected' of null HOT 4
- fingerprint duplicate dialog appears HOT 2
- Face unlock HOT 5
- Conflict with RadListView (Vue)? HOT 1
- Password/pincode fallback doesn't work on iphone HOT 1
- is there a way to remove/hide "use pin" on android HOT 2
- Problem with nativescript-vue HOT 1
- No way to know if biometrics permission has been denied (ios)
- User interaction required with iOS 13
- How to initiate the Passcode Fallback
- FaceID Auth Issues with two identical Apps (different ID) HOT 2
- How do you store the user's password in the iOS / Android keychain when enrolling in biometrics?
- verifyFingerprintWithCustomFallback not displaying Passcode screen on iOS HOT 2
- Resume Event when any Biometrics are passing 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 nativescript-fingerprint-auth.