Skip to content
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

Secure lock screen hasn't been set up #33

Open
r2fer-bit opened this issue May 21, 2018 · 11 comments
Open

Secure lock screen hasn't been set up #33

r2fer-bit opened this issue May 21, 2018 · 11 comments

Comments

@r2fer-bit
Copy link

Hi,
When I set useCustomAndroidUI to true and change the AndroidManifiest.xml, y get the error:
{"code":30,"message":"Secure lock screen hasn't been set up.\n Go to "Settings -> Security -> Screenlock" to set up a lock screen."}

But, I test the app with a phone with screen lock setted by password!

If I change useCustomAndroidUI to false, It runs OK!

Please can you help me?

tns --versión: 4.0.1
Android: 6.0.1 (marshmallow)

@YanVetrov
Copy link

YanVetrov commented Sep 8, 2019

same tns 6.0.1 plugin 7.0.1

UPD:
tns platform remove [platfom]
tns platform add [platform]
tns run\debug [platform]
Problem resolved.

@kandangit
Copy link

kandangit commented Oct 29, 2019

Have exactly the same issue. With useCustomAndroidUI set to false, it will work fine (asks for pattern or fingerprint, as setup in Settings->Security->Screenlock), but need to be able to customize the screen.

Please, how can you change the fingerprint screen?

@update I get to see now the new custom login screen though not been able to setup things like some of the texts
I added to the AndroidManifest.xml:
<uses-permission android:name="android.permission.USE_FINGERPRINT"/>

(It was recognizing fingerprint before adding this line though)

@BlueHunter99
Copy link

@kandangit what line did you add? I cannot see it.

@kandangit
Copy link

Updated the comment, the line was scrapped as it needed code formatting. Just did that, and a new compile/deploy.

@mcalc001
Copy link

mcalc001 commented Jan 16, 2020

Hey, We are having similar issues. On android, when the user changes (adds/removes) a fingerprint in their phone settings, they can no longer use touch id within the app. This message shows within the console.

Secure lock screen hasn't been set up.
Go to "Settings -> Security -> Screenlock" to set up a lock screen. error on biomentricLogin

It is picking that there is results Bio available.

{
"any": true,
"touch": true
}

Any Ideas around this? Is this something that can be changed within the app of will the user have to manually update his security settings?

Thanks!

tns: 6.3

@ReeceReynolds
Copy link

Hey, We are having similar issues. On android, when the user changes (adds/removes) a fingerprint in their phone settings, they can no longer use touch id within the app. This message shows within the console.

Secure lock screen hasn't been set up.
Go to "Settings -> Security -> Screenlock" to set up a lock screen. error on biomentricLogin

It is picking that there is results Bio available.

{
"any": true,
"touch": true
}

Any Ideas around this? Is this something that can be changed within the app of will the user have to manually update his security settings?

Thanks!

tns: 6.3

Experiencing the same issue, is this a phone setting or something I can control in app?

@paul-castro
Copy link

@EddyVerbruggen is this a device issue? or the plugin itself?

Any update about this?

@pavlofigol
Copy link

Hey, We are having similar issues. On android, when the user changes (adds/removes) a fingerprint in their phone settings, they can no longer use touch id within the app. This message shows within the console.

Secure lock screen hasn't been set up.
Go to "Settings -> Security -> Screenlock" to set up a lock screen. error on biomentricLogin

It is picking that there is results Bio available.

{
"any": true,
"touch": true
}

Any Ideas around this? Is this something that can be changed within the app of will the user have to manually update his security settings?

Thanks!

tns: 6.3

same issue here. Anyone managed to resolve this somehow? Everything works fine on iOS :/

@ghost
Copy link

ghost commented Sep 8, 2020

For anyone trying to implement useCustomAndroidUI and getting the following message:

Secure lock screen hasn't been set up.
Go to "Settings -> Security -> Screenlock" to set up a lock screen. error on biomentricLogin

I was able to fix this by removing all of my registered biometric data from the phone I was testing on. I then re-added a finger print and the correct custom dialogue showed the next time I tested my app fingerprint login.

Hope this helps someone, as I was ready to give up on this.

@3rror404
Copy link

3rror404 commented Aug 19, 2021

It seems to work if you set the "use_password" string resource to an empty string in this file: https://github.com/EddyVerbruggen/nativescript-fingerprint-auth/blob/master/demo/app/App_Resources/Android/src/main/res/values/strings.xml

<string name="use_password"></string>

@rubenhr
Copy link

rubenhr commented Oct 8, 2021

Have anyone figure out how to use FaceID in Android? I have setup a project, but for android is only returning biometrics but it doesn't return touch or face.?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants