Refreshing Contact Provider Extension from NSE

Hi,

While testing the new Contact Provider Extension in the iOS 18 betas I noticed that the Notification Service Extension is unable to connect to the CPE in order to trigger a refresh. The ContactProviderManager init throws an "Extension Not Found" error.

The CPE documentation mentions a main use case of using notifications to trigger CPE updates:

"An example of using this call is to handle a push notification to your app when the provided contacts from your server update." source

Is the main app the only way to trigger a CPE update? The documentation does not specify this limitation.

I have tested this on a physical iPhone 15 running iOS 18 beta 4.

Thanks, Wes

Answered by DTS Engineer in 798509022

Thank you for filing the Feedback report. Your issue is expected behavior as ContactProviderManager can only be used from the app. We are going to update the docs to remove this misleading information.

Please file a bug report then post the Feedback number here.

Bug is now reported.

FB14543058 (Refreshing Contact Provider Extension from NSE)

A correction to my initial post:

The error "Extension Not Found" is being thrown from ContactProviderManager.signalEnumerator not ContactProviderManager.init. The initializer does not throw.

Thank you for filing the Feedback report. Your issue is expected behavior as ContactProviderManager can only be used from the app. We are going to update the docs to remove this misleading information.

Ok, thanks for the info. I will submit a feature request for this functionality.

Refreshing Contact Provider Extension from NSE
 
 
Q