我们的客户抱怨 LastPass 的自动填充集成不适用于 Android 上的 React Native 应用程序中的密码输入。我们尝试了输入字段的所有可行配置以及 LastPass 中的不同设置,但无法解决问题。
奇怪的是,问题只发生在密码输入时,而不是用户名输入时。此外,其他自动填充集成(例如来自 Google 或 Microsoft Authenticator 的集成)在填充密码输入时没有问题。
这表明 LastPass 自动填充集成识别密码输入的方式可能存在错误。
还有其他人遇到过这个问题吗?
Verify that your password input field is properly configured with the correct attributes. Common attributes that might affect autofill are:
<TextInput
secureTextEntry={true}
autoCompleteType="password" // Deprecated, use textContentType on iOS
textContentType="password" // For iOS
accessibilityLabel="Password" // Helpful for accessibility services
accessibilityHint="Input field for your password" // Helpful for accessibility services
/>
Try experimenting with different combinations of secureTextEntry, autoCompleteType, and textContentType attributes. Sometimes, small tweaks in these attributes can affect how different services interact with the input fields.
Search LastPass forums or support for any known issues related to autofill with React Native apps or specifically on Android. It's possible that this is a known issue that they are working on resolving.
Ensure that both the LastPass app and your app's dependencies are up to date. Autofill services can be sensitive to versions and recent updates might have resolved the issue.