In the documentation for the Contact Provider Extension contact provider it says
Use the Contact Provider framework if your app manages its own contacts and wants to make them available in other apps that use the Contacts framework.
Is it possible to restrict the Contact Provider Extension to provide contacts to certain applications only? For example to prevent WhatsApp and Facebook accessing the the contacts via Contact Provider Extension. Only phone and iMessage should have access. Thanks
The Contact Provider extension doesn't support restricting access to contacts. The ContactAccessButton feature in iOS 18 allows users to restrict contacts to given apps. Implement this feature if you want to let the user to select additional contacts for your app.