sjhoeksma / cordova-plugin-keychain-touch-id

Touch ID plugin with saving password in keychain for IOS and android
87 stars 160 forks source link

Add NSFaceIDUsageDescription for iOS #48

Open chernobil opened 6 years ago

chernobil commented 6 years ago

Can you add NSFaceIDUsageDescription for iOS. Without it the iOS application is crashing when face id is used. Should be something like cordova-plugin-touch-id

simon-ntitle commented 5 years ago

Yeah I'll appreciate it too. Cheers

[edit] can you try my fork ? should work fine with iPhone X also created PR for this

ionic cordova plugin add https://github.com/simon-ntitle/cordova-plugin-keychain-touch-id.git --variable FACEID_USAGE_DESCRIPTION="For easy authentication"
MatthewPringle commented 5 years ago

Add this to config.xml

<config-file parent="NSFaceIDUsageDescription" target="*-Info.plist">
<string>Library usage description</string>
</config-file>
Lirianna commented 5 years ago

I resolved this issue by adding the plugin again with the extension --variable FACEID_USAGE_DESCRIPTION="For easy authentication" like this:

cordova plugin add cordova-plugin-keychain-touch-id --variable FACEID_USAGE_DESCRIPTION="For easy authentication"

You can change the description to something else, but you cannot leave it blank.

Hope this helps