{"id":21748288,"url":"https://github.com/surfstudio/flutter-push-notification","last_synced_at":"2025-04-13T07:13:16.796Z","repository":{"id":40244593,"uuid":"384333233","full_name":"surfstudio/flutter-push-notification","owner":"surfstudio","description":"Made by Surf 🏄","archived":false,"fork":false,"pushed_at":"2024-04-17T15:36:17.000Z","size":241,"stargazers_count":26,"open_issues_count":3,"forks_count":5,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-04-13T07:13:09.188Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/surfstudio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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}},"created_at":"2021-07-09T05:40:15.000Z","updated_at":"2024-06-06T07:29:13.000Z","dependencies_parsed_at":"2023-02-17T21:01:02.859Z","dependency_job_id":"716e048b-dee7-4e19-80b5-7a034d82185c","html_url":"https://github.com/surfstudio/flutter-push-notification","commit_stats":{"total_commits":27,"total_committers":11,"mean_commits":"2.4545454545454546","dds":0.7777777777777778,"last_synced_commit":"03932f6d1fc89729e04eb3e04b7bbb1a8de32fe9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surfstudio%2Fflutter-push-notification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surfstudio%2Fflutter-push-notification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surfstudio%2Fflutter-push-notification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surfstudio%2Fflutter-push-notification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/surfstudio","download_url":"https://codeload.github.com/surfstudio/flutter-push-notification/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248675422,"owners_count":21143768,"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-26T08:12:56.397Z","updated_at":"2025-04-13T07:13:16.742Z","avatar_url":"https://github.com/surfstudio.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Push Notification\n\n\u003cimg src=\"https://raw.githubusercontent.com/surfstudio/flutter-open-source/main/assets/logo_black.png#gh-light-mode-only\" width=\"200\"\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/surfstudio/flutter-open-source/main/assets/logo_white.png#gh-dark-mode-only\" width=\"200\"\u003e\n\n[![Build Status](https://shields.io/github/actions/workflow/status/surfstudio/flutter-push-notification/on_pull_request.yml?logo=github\u0026logoColor=white)](https://github.com/surfstudio/flutter-push-notification)\n[![Coverage Status](https://img.shields.io/codecov/c/github/surfstudio/flutter-push-notification?logo=codecov\u0026logoColor=white)](https://app.codecov.io/gh/surfstudio/flutter-push-notification)\n[![Pub Version](https://img.shields.io/pub/v/push_notification?logo=dart\u0026logoColor=white)](https://pub.dev/packages/push_notification)\n[![Pub Likes](https://badgen.net/pub/likes/push_notification)](https://pub.dev/packages/push_notification)\n[![Pub popularity](https://badgen.net/pub/popularity/push_notification)](https://pub.dev/packages/push_notification/score)\n![Flutter Platform](https://badgen.net/pub/flutter-platform/push_notification)\n\n## Overview\n\nLibrary for implementing push notifications.\nThe module contains the main work with push notifications.\n\n## Example\n\nAn example of using the library can be found in [example](example).\n\n* Create a notification data type through inheritance `NotificationPayload`.\n* Create a strategy for handling notifications through inheritance `PushHandleStrategy`.\n* Create a factory of strategies through inheritance `PushHandleStrategyFactory`.\n\n* To receive notifications, you need to create an instance. `MessagingService`.\n* To display notifications, you need to create an instance `NotificationController`.\n* And pass created instances when creating `PushHandler` that will create the strategy using the factory.\n\n## Installation\n\nAdd `push_notification` to your `pubspec.yaml` file:\n\n```yaml\ndependencies:\n  push_notification: $currentVersion$\n```\n\n\u003cp\u003eAt this moment, the current version of \u003ccode\u003epush_notification\u003c/code\u003e is \u003ca href=\"https://pub.dev/packages/push_notification\"\u003e\u003cimg style=\"vertical-align:middle;\" src=\"https://img.shields.io/pub/v/push_notification.svg\" alt=\"push_notification version\"\u003e\u003c/a\u003e.\u003c/p\u003e\n\n## Changelog\n\nAll notable changes to this project will be documented in [this file](./CHANGELOG.md).\n\n## Issues\n\nTo report your issues, file directly in the [Issues](https://github.com/surfstudio/flutter-push-notification/issues) section.\n\n## Contribute\n\nIf you would like to contribute to the package (e.g. by improving the documentation, fixing a bug or adding a cool new feature), please read our [contribution guide](./CONTRIBUTING.md) first and send us your pull request.\n\nYour PRs are always welcome.\n\n## How to reach us\n\nPlease feel free to ask any questions about this package. Join our community chat on Telegram. We speak English and Russian.\n\n[![Telegram](https://img.shields.io/badge/chat-on%20Telegram-blue.svg)](https://t.me/SurfGear)\n\n## License\n\n[Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurfstudio%2Fflutter-push-notification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsurfstudio%2Fflutter-push-notification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurfstudio%2Fflutter-push-notification/lists"}