Disable Autofill Strong Password (autofill) on iOS 12

See original GitHub issue

Environment

Expo CLI 2.2.5 environment info:
    System:
      OS: macOS 10.14
      Shell: 5.3 - /bin/zsh
    Binaries:
      Node: 8.12.0 - /usr/local/bin/node
      Yarn: 1.5.1 - ~/.yarn/bin/yarn
      npm: 6.4.1 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    IDEs:
      Android Studio: 3.2 AI-181.5540.7.32.5014246
      Xcode: 10.1/10B61 - /usr/bin/xcodebuild
    npmPackages:
      expo: ^30.0.1 => 30.0.2
      react: 16.3.1 => 16.3.1
      react-native: https://github.com/expo/react-native/archive/sdk-30.0.0.tar.gz => 0.55.4
    npmGlobalPackages:
      expo-cli: 2.2.5

Steps to Reproduce

Create a form with three TextInput :

1 ) Field for the email 2 ) Field for the password 3) Field for the validation of my password

Expected Behavior

I try to set these properties to my TextInput:

textContentType='none'
autoCorrect={false}

Actual Behavior

Strong password autofill works…

Thanks for the help 😃

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:25 (6 by maintainers)

github_iconTop GitHub Comments

14reactions
andricthamcommented, Nov 25, 2018

+1. The auto yellow box clashes with our app’s password input styling that’s confusing to users.

9reactions
ashish1259commented, Mar 15, 2019

iOS 12 recognise password textFields by isSecureTextEntry property and not just by textContentType property.

Way Around to bypass Auto-fill Strong Password Suggestion.

  1. set isSecureTextEntry property to false.

self.passwordTextField.secureTextEntry = NO;

  1. Add a UITextField Delegate Method and enable the isSecureTextEntry property.
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string {
    if (textField == self.passwordTextField && !self.passwordTextField.secureTextEntry) {
        self.passwordTextField.secureTextEntry = YES;
    }
    
    return YES;
}

NOTE: - Do NOT Use shouldBeginEditing UITextField delegate method it Will Still show Auto-filling Suggestion. Do NOT Use textFieldDidChange UITextField delegate method it Will Auto-delete the first charachter as the it Will happen after the first charachter is displayed. And ‘secureTextEntry’ will empty the field.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disable password autofill iOS 12 | Apple Developer Forums
I have a view with a signle UITextField in it. When the secure text entry is enabled the password autofill appears on the...
Read more >
Expo - Disable Autofill Strong Password (autofill) on iOS 12
On my application working on Expo, I would like to disable this functionality (strong password ios 12) : https ...
Read more >
iOS : Expo - Disable Autofill Strong Password (autofill) on iOS 12
iOS : Expo - Disable Autofill Strong Password ( autofill ) on iOS 12 [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] iOS ...
Read more >
iPhone 12/12 Pro: How to Enable/Disable Auto-Fill Passwords
Learn how you can enable or disable auto-fill passwords on the iPhone 12 / iPhone 12 Pro.Gears I use:Velbon Sherpa 200 R/F Tripod...
Read more >
iOS12 — Password AutoFill, Automatic Strong Password, and ...
1. Setup App's Associated Domains · 2. Add the Apple App Site Association File to your Website · 3. Password AutoFill · 4....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found