Unable to add "One Time Codes" support to my app

I'm working on a Password Manager app that integrates with the AutoFill Credential Provider to provide stored passwords and OTPs to the user within Safari and other apps.

Password AutoFill works perfectly.

I'm unable to get iOS to register that the app supports OTPs though.

I've followed the Apple documentation here: https://developer.apple.com/documentation/authenticationservices/providing-one-time-passcodes-to-autofill and added "ProvidesOneTimeCodes" to the AutoFill extension's Info.plist, but iOS just doesn't seem to notice the OTP support.

<key>ASCredentialProviderExtensionCapabilities</key>
<dict>
	<key>ProvidesOneTimeCodes</key>
	<true/>
	<key>ProvidesPasswords</key>
	<true/>
</dict>

Any help would be greatly appreicated!

Answered by Chris_Greenacre in 827183022

If anyone find this in the future... make sure you nest it under NSExtension, I found my problem!

<dict>
	<key>NSExtensionAttributes</key>
	<dict>
		<key>ASCredentialProviderExtensionCapabilities</key>
		<dict>
			<key>ProvidesOneTimeCodes</key>
			<true/>
			<key>ProvidesPasswords</key>
			<true/>
		</dict>
	</dict>
</dict>
Accepted Answer

If anyone find this in the future... make sure you nest it under NSExtension, I found my problem!

<dict>
	<key>NSExtensionAttributes</key>
	<dict>
		<key>ASCredentialProviderExtensionCapabilities</key>
		<dict>
			<key>ProvidesOneTimeCodes</key>
			<true/>
			<key>ProvidesPasswords</key>
			<true/>
		</dict>
	</dict>
</dict>
Unable to add "One Time Codes" support to my app
 
 
Q