Detect wether Android/iOS device is secured with a password or fingerprint?

I have an Ionic 2 app that needs to only be fully usable only if the device it is on is secured in some way with either a passcode, fingerprint or some other security method. Is there a way to do this with Ionic 2?

Thanks.

Check https://github.com/Crypho/cordova-plugin-secure-storage.

This plugin also requires some security on the device, and fails to initialize if not present. Maybe you can adapt it to detect such cases.

Hey, thanks for your response! I had the exact same idea. Only issue is I am unable to get a cordova plugin working as it is not natively supported by Ionic. Haven’t really done this before. See here: Installing and using a Cordova plugin that is not natively supported by Ionic

Yes, it is supported by Ionic native: https://ionicframework.com/docs/native/secure-storage/