Document extension context refresh workaround for local testing#152
Open
Hardikrepo wants to merge 1 commit into
Open
Document extension context refresh workaround for local testing#152Hardikrepo wants to merge 1 commit into
Hardikrepo wants to merge 1 commit into
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
TestingInstructionsLiveCallerIdLookup.mdexplaining that changingLiveCallerIDLookupExtensionContext(e.g. pointingserviceURLat a local machine) after the extension has already been enabled can leave the system using the stale context, surfacing asCipherML.AuthenticationError Code=7 "failed to fetch token key"in Console.app.LiveCallerIDLookupManager.shared.refreshExtensionContext(forExtensionWithIdentifier:)to force the system to pick up the updated context (distinct fromrefreshPIRParameters, 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