'Show Automatic Strong password iOS in Flutter app

For a small coding project I manually installed my homemade Flutter app on my iPhone. This app has a Registration page, where a user can fill in their email and password to sign up for the app. To enable iOS Automatic Strong Password I used the Flutter AutofillGroup widget, and provided the appropriate AutofillHints to the corresponding textfields:

return AuthScaffoldView(
      title: 'Sign in',
      child: Container(
        color: Colors.white,
        child: AutofillGroup(
          child: Column(
            children: [
              CupertinoTextField(
                onEditingComplete: () => FocusScope.of(context).unfocus(),
                placeholder: 'Email',
                keyboardType: TextInputType.emailAddress,
                controller: model.editableUser.email,
                autofillHints: [AutofillHints.email],
                clearButtonMode: OverlayVisibilityMode.editing,
              ),
              CupertinoTextField(
                onEditingComplete: () => FocusScope.of(context).unfocus(),
                placeholder: 'Wachtwoord',
                controller: model.editableUser.password,
                autofillHints: [AutofillHints.newPassword],
                clearButtonMode: OverlayVisibilityMode.editing,
              ),
              CupertinoTextField(...

When I run the app on my phone, the AutofillHints work as expected for the email TextField, but on tapping the password TextField I get the following error as Xcode output:

[AutoFill] Cannot show Automatic Strong Passwords for app bundleID: {bundleID} due to error: Cannot identify the calling app's process. Check teamID and bundleID in your app's application-identifier entitlement.

I signed my app in Xcode (under Signing & Capabilities) with the appropriate Team and Bundle Identifier. Does anybody know where this error is coming from?



Solution 1:[1]

Are you trying to indicate to the user, whether a password is strong enough or not? Please use this package here to do this:

https://pub.dev/packages/password_strength

Make sure to replace the password field, with this package's widget

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dan Gerchcovich