Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26094] iOS 12: Add Password Autofill improvements

GitHub Issuen/a
TypeImprovement
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2018-07-12T07:11:13.000+0000
Affected Version/sn/a
Fix Version/sRelease 7.4.0
ComponentsiOS
Labelsn/a
ReporterHans Knöchel
AssigneeHans Knöchel
Created2018-06-05T18:04:35.000+0000
Updated2018-09-05T17:34:22.000+0000

Description

iOS 12 offers a number of new API's to manage password autofill in text-fields and text-areas. We should expose them as part of the existing toolset and consider parity as well. More docs: - https://developer.apple.com/documentation/uikit/uitextinputpasswordrules - https://developer.apple.com/documentation/uikit/uitextinputtraits/2980934-passwordrules - https://developer.apple.com/documentation/uikit/uitextcontenttypenewpassword - https://developer.apple.com/documentation/uikit/uitextcontenttypeonetimecode

Comments

  1. Hans Knöchel 2018-06-05

    PR: https://github.com/appcelerator/titanium_mobile/pull/10088 Test-Case: (Coming later this week)
  2. Hans Knöchel 2018-06-25

    Test-case (requires the autofill-setup described in TIMOB-24808):
       var win = Ti.UI.createWindow({
           backgroundColor: '#ddd'
       });
       
       var field = Ti.UI.createTextField({
           autofillType: Ti.UI.AUTOFILL_TYPE_PASSWORD,
           passwordRules: 'required: upper; required: lower; required: digit; max-consecutive: 2; minlength: 8;',
           passwordMask: true,
           width: 300,
           height: 40,
           backgroundColor: '#fff' });
       
       win.add(field);
       win.open();
       
    Expected behavior: When using the iOS 12 suggested password feature, it will fill the text-field with a value that matches the password-rules requirement.
  3. Christopher Williams 2018-08-27

    cherry picked the fix to 7_4_X branch: https://github.com/appcelerator/titanium_mobile/commit/98611ac5240a85473ff0d0eec8d4df13d0c9a66b
  4. Eric Wieber 2018-09-05

    Verified implemented with SDK builds 7.4.0.v20180829013317 & 7.5.0.v20180904155047

JSON Source