apple / apple/password-manager-resources
Potential Bug - Autofill Target - prepareInterfaceForExtensionConfiguration not called by the system on IOS version lower than IOS 17
- Dominant language
- JavaScript
- Stars
- 4.8k
- Forks
- 649
- Avg merge
- 9h 50m
- Merged PRs (30d)
- 15
Description
Hello everyone,
First of all, I am not an experienced developer. I am creating a Password Manager as a personal project to challenge myself on app development.
I just found this community, feel free to redirect me to another place if this github repo is not appropriated.
I sent a feedback to Apple via the feedback assistant, but I am not sure it is the appropriate place as well.
This issue:
When the device (real or simulator) is on an IOS version lower than IOS 17, the system does not call the prepareInterfaceForExtensionConfiguration function (in the CredentialProviderViewController).
Issue tested on:
- Simulator Iphone 6s with IOS 15.5
- Simulator Iphone 12 with IOS 15.5
- Simulator Iphone 13pro with IOS 16.4
- Simulator Iphone 8plus with IOS 16.4
- Real device Iphone X with IOS 16.7
It works well on all IOS 17 version for all simulators and devices I tested.
How to reproduce the issue:
- Create a new project on Xcode
- Add a Credential Provider Extension target to your project
- Add the AutoFill Credential Provider Entitlement to both the extension and its containing app
- Specify the ShowsConfigurationUI key with a value of YES in the ASCredentialProviderExtensionCapabilities dictionary, within the NSExtensionAttributes dictionary in the extension’s Information Property List
- Set IOS minimum deployment to 15 to both the extension and its containing app
- Start the main target (containing the extension)
- Go to the "Password Settings" > "Password Options"
- Select your app as Password Provider in the "ALLOW FILLING FROM" section
From here you can notice that nothing happen if the IOS version of the device is lower than IOS 17.
I already created the same kind of app some months ago and it was working.
Did I miss something? Or is it a real bug?
Unfortunately I do not succeed to get logs on Xcode even when the function is well triggered, so I do not have logs/analysis file to provide (if you can indicate how to get logs for that, it would be really useful).
The Apple documentation about Password Provider is not really explicit.
Xcode version: 15.2 (on a Macbook Air M2 2022)
Thank you in advance for your help
Contributor guide
Research direction
Start by reproducing the behavior with a Credential Provider Extension on the listed iOS 15.5, 16.4, 16.7, and 17 versions in Xcode 15.2. Inspect when CredentialProviderViewController.prepareInterfaceForExtensionConfiguration is invoked and compare the extension entitlements and NSExtensionAttributes configuration. Done means determining whether the behavior is an Apple platform issue or a configuration problem, with logs or documented evidence.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios
- Domain
- mobile-dev, security
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100