Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6227] iOS: Ti.Identity - FaceID crashes 100% of the time

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDone
Resolution Date2019-04-30T23:50:22.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsfaceid, ios, module, ti.identity
ReporterDaniel Falcon
AssigneeShak Hossain
Created2019-04-26T09:46:24.000+0000
Updated2019-04-30T23:50:22.000+0000

Description

Hi guys, I was going to release a new version of some of our apps when I found that the previous ti.touchid module was deprecated. I quickly found the ti.identity module and I downloaded version 1.0.4 and 1.0.6. I added it to my projects and the app seemed to be crashing all the time I was trying to invoke the authentication. For the sake of testing, I created a brand new project, using just the example of the module itself and nothing more. The result is that as soon as I try to use FaceID both in emulator and in a real device the app just crashes without showing any information in the log. This would be easy to check: just create a project with the app.js of the example in the ti.identity module. If you need more detailed information, could you please let me know how to get it? Thanks in advance! PS: Same module tested in non FaceID devices such as iPhone 7, works with TouchID.

Comments

  1. Hans Knöchel 2019-04-27

    Please read the documentation carefully. You need the NSFaceIDUsageDescription flag in the plist section of your tiapp.xml, e.g.:
       <key>NSFaceIDUsageDescription</key>
       <string>Why you need Face ID.</string>
       
  2. Daniel Falcon 2019-04-29

    Hi Hans, As usual you got the right answer. I added this key to the tiapp.xml in the past, but I commented it out for testing and never reverted it back. Uncommenting it again, did the job. Many thanks for your help. You can close this issue.

JSON Source