{"id":21768114,"url":"https://github.com/below/threadcredentialsample","last_synced_at":"2025-07-02T11:36:52.347Z","repository":{"id":66512652,"uuid":"594000682","full_name":"below/ThreadCredentialSample","owner":"below","description":"A sample for the ThreadClient access in iOS","archived":false,"fork":false,"pushed_at":"2023-01-27T11:16:32.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-28T14:06:50.558Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/below.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-27T11:06:35.000Z","updated_at":"2023-02-12T09:16:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"c47b7127-ff5f-41f3-8d3c-0fcffccd2069","html_url":"https://github.com/below/ThreadCredentialSample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/below/ThreadCredentialSample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/below%2FThreadCredentialSample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/below%2FThreadCredentialSample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/below%2FThreadCredentialSample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/below%2FThreadCredentialSample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/below","download_url":"https://codeload.github.com/below/ThreadCredentialSample/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/below%2FThreadCredentialSample/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263130981,"owners_count":23418380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-26T13:33:36.803Z","updated_at":"2025-07-02T11:36:52.294Z","avatar_url":"https://github.com/below.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ThreadCredentialSample\nA sample for the ThreadClient access in iOS\n\nThe app is using the `com.apple.developer.networking.manage-thread-network-credentials` entitlements.\n\nTested on iOS 16.3 (20D47)\n\n## Errors thrown\n\n### For Store Credentials\n\nThe following error is shown in the console when calling `threadClient.storeCredentials(forBorderAgent: activeOperationalDataSet:)` : \n```\n2023-01-27 12:11:47.926550+0100 ThreadCredentialSample[24248:2153332] [thclient] Client: -[THClient getConnectionEntitlementValidity]_block_invoke - Error: (null)\n2023-01-27 12:11:47.930120+0100 ThreadCredentialSample[24248:2153332] [thclient] -[THClient storeCredentialsForBorderAgent:activeOperationalDataSet:completion:]_block_invoke:612: - Error: Error Domain=NSCocoaErrorDomain Code=4099 \"The connection to service with pid 9836 named com.apple.ThreadNetwork.xpc was invalidated from this process.\" UserInfo={NSDebugDescription=The connection to service with pid 9836 named com.apple.ThreadNetwork.xpc was invalidated from this process.}\n\"Couldn’t communicate with a helper application.\"\n\n```\n\n### Retrieve Credentials\n\nOn calling `retrievePreferredCredentials:`, the permissions dialog is shown and the following error is shown in the console.\n\n```\n2023-01-27 12:03:11.030374+0100 ThreadCredentialSample[24200:2148566] [thclient] Client: -[THClient getConnectionEntitlementValidity]_block_invoke - Error: (null)\n\"\u003cTHClient: 0x281796f60\u003e\"\n2023-01-27 12:03:11.031619+0100 ThreadCredentialSample[24200:2148566] [thclient] Client: -[THClient retrievePreferredCredentials:]_block_invoke - Error: Error Domain=NSCocoaErrorDomain Code=4099 \"The connection to service with pid 9836 named com.apple.ThreadNetwork.xpc was invalidated from this process.\" UserInfo={NSDebugDescription=The connection to service with pid 9836 named com.apple.ThreadNetwork.xpc was invalidated from this process.}\n\"ERROR: Couldn’t communicate with a helper application.\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbelow%2Fthreadcredentialsample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbelow%2Fthreadcredentialsample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbelow%2Fthreadcredentialsample/lists"}