Titanium JIRA Archive
Appcelerator Modules (MOD)

[MOD-2553] ti.identity fails on Android 10

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2020-02-12T14:59:07.000+0000
Affected Version/sn/a
Fix Version/sRelease 9.0.0
ComponentsIdentity
Labelsandroid, android-10, ti.identity
Reportergrebulon
AssigneeGary Mathews
Created2019-09-11T13:05:00.000+0000
Updated2020-02-12T14:59:12.000+0000

Description

FingerprintHeper#initCipher() fails. Log shows:
E/KeyStore: generateKeyInternal failed on response 2
E/FingerPrintHelper: (KrollRuntimeThread) [16,15974] Unable to initialize cipher
D/TestApp: (KrollRuntimeThread) [1853,17830] Platform.TouchID.authenticate: {"error":"Failed to encrypt the data with the generated key.","success":false}
To reproduce, just call:
require('ti.identity').authenticate({callback:function(d) {});
This happened to me with Pixel 2 (google walleye) on Android 10 (API 29) Probably needs to migrate to BiometricPrompt and BiometricManager.

Comments

  1. Gary Mathews 2019-10-23

    ti.identity: https://github.com/appcelerator-modules/titanium-identity/pull/42
  2. Samir Mohammed 2020-02-12

    Closing ticket, fix verified in SDK version 9.0.0.v20200211122336. Test and other information can be found at: ti.identity: https://github.com/appcelerator-modules/titanium-identity/pull/46 master: https://github.com/appcelerator/titanium_mobile/pull/11448

JSON Source