{ "id": "172690", "key": "AC-6044", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2018-12-10T22:43:33.000+0000", "created": "2018-12-03T10:12:44.000+0000", "labels": [ "Android", "TiIdentity," ], "versions": [ { "id": "17038", "name": "Appcelerator Studio 4.5.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2020-03-18T16:45:21.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "I've tried to use the latest module Ti.Identity and the built into the SDK version Modules.Identity.\r\n\r\nI have this working great for iOS, but I'm having issues with Android. \r\n\r\nI have two Android devices, both support Fingerprint. If the Fingerprint is set then when I call .authenticate() then there is no UI like on iOS but if I successfully scan then I get a Yay Success!\r\n\r\nIf there is no Fingerprint set but there is a passcode nothing happens. Same no UI.\r\n\r\nOn Android you cannot call setAuthenticationPolicy() but you can set authenticationPolicy property.\r\n\r\nIf I set it to AUTHENTICATION_POLICY_PASSCODE. It seems like it's set but it doesn't do anything different no UI for the passcode.\r\n\r\nSee example app:\r\n\r\n{code:java}\r\n\r\n\r\nvar TiIdentity = require('ti.identity');\r\n\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar btn = Ti.UI.createButton({\r\n\ttitle: 'authenticate'\r\n});\r\n\r\nwin.add(btn);\r\nwin.open();\r\n\r\nbtn.addEventListener('click', function(){\r\n\tTi.API.info('gets here1');\r\n\tif (!TiIdentity.isSupported()) {\r\n\t\talert(\"Touch ID is not supported on this device!\");\r\n\t\treturn;\r\n\t}\r\n\t\r\n\tTiIdentity.authenticationPolicy = TiIdentity.AUTHENTICATION_POLICY_PASSCODE;\r\n\t\r\n\tvar deviceCanAuthenticate = TiIdentity.deviceCanAuthenticate();\r\n\tif (deviceCanAuthenticate.canAuthenticate) {\r\n\t\tTiIdentity.authenticate({\r\n\t\t\treason: 'We need your fingerprint to continue.',\r\n\t\t\tcallback: function(e) {\r\n\t\t\t\tTi.API.info('gets here1');\r\n\t\t\t\tif (!e.success) {\r\n\t\t\t\t\talert('Message: ' + e.error);\r\n\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\talert('YAY! success');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t} else {\r\n\t\talert('Error: ' + deviceCanAuthenticate.error);\r\n\t}\r\n});\r\n{code}\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "Ti.Identity or Module.Identity - Cannot use Passcode or Pattern for Android", "creator": { "name": "mark.henderson@snagr.co.uk", "key": "mark.henderson@snagr.co.uk", "displayName": "Mark Henderson", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "mark.henderson@snagr.co.uk", "key": "mark.henderson@snagr.co.uk", "displayName": "Mark Henderson", "active": true, "timeZone": "Europe/London" }, "environment": "Latest SDK, Android ", "comment": { "comments": [ { "id": "444193", "author": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hi [~mark.henderson@snagr.co.uk],\r\nWhat version of ti SDK and identity module you're using? Can you share your device details as well? Let us know the update.\r\n\r\nThanks!", "updateAuthor": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-12-04T06:11:35.000+0000", "updated": "2018-12-04T06:11:35.000+0000" }, { "id": "454753", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The plan is to solve this in \"ti.identity\" via Google's new Biometrics APIs.\r\nThis will be handle via ticket: [MOD-2588]", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2020-03-18T16:45:16.000+0000", "updated": "2020-03-18T16:45:16.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }