{"id":21415696,"url":"https://github.com/npvisual/applifecyclemiddleware","last_synced_at":"2026-01-03T07:32:57.885Z","repository":{"id":46103268,"uuid":"302143981","full_name":"npvisual/AppLifecycleMiddleware","owner":"npvisual","description":"Middleware that reacts to an Application's lifecycle","archived":false,"fork":false,"pushed_at":"2021-11-23T13:25:18.000Z","size":42,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-23T05:31:17.883Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/npvisual.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}},"created_at":"2020-10-07T19:47:18.000Z","updated_at":"2023-09-12T20:11:05.000Z","dependencies_parsed_at":"2022-09-23T06:50:44.590Z","dependency_job_id":null,"html_url":"https://github.com/npvisual/AppLifecycleMiddleware","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npvisual%2FAppLifecycleMiddleware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npvisual%2FAppLifecycleMiddleware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npvisual%2FAppLifecycleMiddleware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npvisual%2FAppLifecycleMiddleware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/npvisual","download_url":"https://codeload.github.com/npvisual/AppLifecycleMiddleware/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243912515,"owners_count":20367873,"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-22T18:51:50.207Z","updated_at":"2026-01-03T07:32:57.859Z","avatar_url":"https://github.com/npvisual.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AppLifecycleMiddleware\n\nThis is a [SwiftRex Middleware](https://github.com/SwiftRex/SwiftRex#middleware) that specializes in transforming application lifecycle notification to Redux actions.\n\nThe original code was pulled from [@luizmb](https://github.com/luizmb)'s code and extracted to avoid copying it over and over. In addition the code was refactored to allow to mock some of the notifications provided by the [`NotificationCenter`](https://developer.apple.com/documentation/foundation/notificationcenter) (via dependency injection).\n\n## Current features\n\nWe currently support the following notifications : \n\n- [`didBecomeActiveNotification`](https://developer.apple.com/documentation/uikit/uiapplication/1622953-didbecomeactivenotification)\n- [`willResignActiveNotification`](https://developer.apple.com/documentation/uikit/uiapplication/1622973-willresignactivenotification)\n- [`didEnterBackgroundNotification`](https://developer.apple.com/documentation/uikit/uiapplication/1623071-didenterbackgroundnotification)\n- [`willEnterForegroundNotification`](https://developer.apple.com/documentation/uikit/uiapplication/1622944-willenterforegroundnotification)\n\n## Future enhancements\n\nLooking at supporting those additional notifications : \n\n- [`willTerminateNotification`](https://developer.apple.com/documentation/uikit/uiapplication/1623061-willterminatenotification)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpvisual%2Fapplifecyclemiddleware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnpvisual%2Fapplifecyclemiddleware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpvisual%2Fapplifecyclemiddleware/lists"}