[TIMOB-24094] Ti.TouchID module timeout extension
GitHub Issue | n/a |
Type | Improvement |
Priority | None |
Status | Closed |
Resolution | Not Our Bug |
Resolution Date | 2016-11-03T16:08:13.000+0000 |
Affected Version/s | Release 5.5.1 |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Neeraj Mishra |
Assignee | Hans Knöchel |
Created | 2016-11-03T11:51:05.000+0000 |
Updated | 2017-03-24T18:56:50.000+0000 |
Description
Description
The Ti.TouchID module seems to timeout after 30 mins. Is it possible to
extend that timeout to 4 hours?
Result:
User gets prompted for touchID after 30min
Expected Result
Increase the timeout configurable so that it can be extended up to 4 hrs or any value. Or any possible workaround.
Comments
JSON Source
As discussed on Flowdock, this is not technically possible. But as I just finished TIMOB-20547 today, you could use [this snippet](https://gist.github.com/hansemannn/e4b6015c7470658214ed42ccd7efca15) to call the new
invalidate()
method to hide the dialog and show it again. So for example, they could use a timeout of 15 minutes toinvalidate()
andauthenticate()
again. As said before, Apple does not offer any other way to this behavior (primary because of usability and privacy reasons). Thx! *EDIT*: The 2.1.0 (beta) release can be found [here](https://github.com/appcelerator-modules/ti.touchid/releases/tag/2.1.0-beta.1). It includes an updated app.js with all new features as well. The docs will be available online as soon as it is merged, probably next week.Closing ticket with reference to the previous comments.