Skip to content

Document extension context refresh workaround for local testing#152

Open
Hardikrepo wants to merge 1 commit into
apple:mainfrom
Hardikrepo:issue-116-troubleshooting-doc
Open

Document extension context refresh workaround for local testing#152
Hardikrepo wants to merge 1 commit into
apple:mainfrom
Hardikrepo:issue-116-troubleshooting-doc

Conversation

@Hardikrepo

Copy link
Copy Markdown

Summary

  • Adds a "Troubleshooting" note to TestingInstructionsLiveCallerIdLookup.md explaining that changing LiveCallerIDLookupExtensionContext (e.g. pointing serviceURL at a local machine) after the extension has already been enabled can leave the system using the stale context, surfacing as CipherML.AuthenticationError Code=7 "failed to fetch token key" in Console.app.
  • Documents the fix: call LiveCallerIDLookupManager.shared.refreshExtensionContext(forExtensionWithIdentifier:) to force the system to pick up the updated context (distinct from refreshPIRParameters, which only refreshes the dataset).

This was reported and worked around in #116, where a maintainer asked the reporter to write up the fix for others, but it was never added to the docs.

Fixes #116.

Test plan

  • Docs-only change; no code/tests affected.

…e#116)

Add a troubleshooting note that changing LiveCallerIDLookupExtensionContext
after the extension is enabled requires calling
refreshExtensionContext(forExtensionWithIdentifier:), otherwise the system
keeps using the stale context and connections fail with
"failed to fetch token key". Requested by a maintainer in apple#116 but never
written up.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

App Extension can not connect to local PIR service

1 participant