{"id":16833520,"url":"https://github.com/ole/notificationunregistering","last_synced_at":"2025-04-11T04:33:18.035Z","repository":{"id":136294902,"uuid":"116303215","full_name":"ole/NotificationUnregistering","owner":"ole","description":"Testing the behavior of the block based NotificationCenter API. Do you have to call NotificationCenter.removeObserver(_:) or is it enough to let the observer token go out of scope? Turns out: the former (tested on iOS 11.2).","archived":false,"fork":false,"pushed_at":"2021-05-03T11:26:21.000Z","size":13,"stargazers_count":17,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-25T02:40:19.166Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://oleb.net/blog/2018/01/notificationcenter-removeobserver/","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ole.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-01-04T20:13:11.000Z","updated_at":"2024-10-07T17:03:08.000Z","dependencies_parsed_at":"2023-07-24T07:01:26.187Z","dependency_job_id":null,"html_url":"https://github.com/ole/NotificationUnregistering","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ole%2FNotificationUnregistering","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ole%2FNotificationUnregistering/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ole%2FNotificationUnregistering/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ole%2FNotificationUnregistering/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ole","download_url":"https://codeload.github.com/ole/NotificationUnregistering/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248345202,"owners_count":21088231,"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-10-13T11:54:31.128Z","updated_at":"2025-04-11T04:33:17.971Z","avatar_url":"https://github.com/ole.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"Do you have to manually unregister block-based NotificationCenter observers?\n\n**tl;dr:** yes. (Tested on iOS 11.2.)\n\nFor more info, see [the accompanying article](https://oleb.net/blog/2018/01/notificationcenter-removeobserver/).\n\nThis is the test app I used to test the behavior of [`NotificationCenter.addObserver(forName:object:queue:using:)`](https://developer.apple.com/documentation/foundation/notificationcenter/1411723-addobserver) under various scenarios.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fole%2Fnotificationunregistering","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fole%2Fnotificationunregistering","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fole%2Fnotificationunregistering/lists"}