{"id":22035727,"url":"https://github.com/mrtnetwork/flutter_windows_notification","last_synced_at":"2025-08-30T10:39:18.969Z","repository":{"id":64206121,"uuid":"574052663","full_name":"mrtnetwork/flutter_windows_notification","owner":"mrtnetwork","description":"A library for sending notifications on Windows using Flutter","archived":false,"fork":false,"pushed_at":"2024-08-20T06:41:30.000Z","size":346,"stargazers_count":18,"open_issues_count":5,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-07T19:48:51.987Z","etag":null,"topics":["flutter","notification","notifications","windows"],"latest_commit_sha":null,"homepage":"","language":"C++","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/mrtnetwork.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-12-04T09:23:15.000Z","updated_at":"2025-03-12T04:22:02.000Z","dependencies_parsed_at":"2024-04-30T07:52:37.401Z","dependency_job_id":"3abf5fe8-ba9b-43a1-9e60-d56857874608","html_url":"https://github.com/mrtnetwork/flutter_windows_notification","commit_stats":null,"previous_names":["mrtnetwork/flutter_windows_notification","mohsenhaydari/flutter_windows_notification"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mrtnetwork/flutter_windows_notification","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtnetwork%2Fflutter_windows_notification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtnetwork%2Fflutter_windows_notification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtnetwork%2Fflutter_windows_notification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtnetwork%2Fflutter_windows_notification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrtnetwork","download_url":"https://codeload.github.com/mrtnetwork/flutter_windows_notification/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrtnetwork%2Fflutter_windows_notification/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272839634,"owners_count":25001860,"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","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["flutter","notification","notifications","windows"],"created_at":"2024-11-30T10:26:13.504Z","updated_at":"2025-08-30T10:39:18.930Z","avatar_url":"https://github.com/mrtnetwork.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"A library for sending notifications on Windows using Flutter\n\n## Features\n\n- Sending notifications by ready-made templates of the plugin\n- Send notifications by user-created templates\n- Receive notification events sent\n- Delete all notifications sent by you from Windows Action Center\n- Delete notifications group sent by you from Windows Action Center\n- Add deep link to notification\n\n\n## Usage\n\n### Send notification with plugin template\n\nSending notifications through the plugin's own templates, there are currently 3 template available in the plugin.\n\n```\nimport 'package:windows_notification/notification_message.dart';\nimport 'package:windows_notification/windows_notification.dart';\n\n// Create an instance of Windows Notification with your application name\n// application id must be null in packaged mode\nfinal _winNotifyPlugin = WindowsNotification(applicationId: \"r\"{D65231B0-B2F1-4857-A4CE-A8E7C6EA7D27}\\WindowsPowerShell\\v1.0\\powershell.exe\"\");\n\n\n// create new NotificationMessage instance with id, title, body, and images\nNotificationMessage message = NotificationMessage.fromPluginTemplate(\n      \"test1\",\n      \"TEXT\",\n      \"TEXT\",\n      largeImage: file_path,\n      image: file_path\n);\n\n\n// show notification    \n_winNotifyPlugin.showNotificationPluginTemplate(message);\n\n```\n#### Notification with imge and large image\n\n![fix2](https://user-images.githubusercontent.com/56779182/205485419-4303fdca-9f96-48e8-b6af-6f0df2ce8419.png)\n\n#### Notification with imge\n\n![fix3](https://user-images.githubusercontent.com/56779182/205485467-16f51b78-9dd4-4420-9de4-16c904e6871e.png)\n\n#### notification without any image\n\n![fix1](https://user-images.githubusercontent.com/56779182/205485486-abba6ed9-d56a-4a56-bbd5-0c7485376604.png)\n\n\n### Send notification with custom template\n\nYou can use the template made by you to send the notification\nYou can find a lot of templates code  with a simple search on the Internet\n\n\n#### Several examples of these templates\n\n\n```\n\nconst String template = '''\n\u003ctoast activationType=\"protocol\"\u003e\n  \u003cvisual\u003e\n    \u003cbinding template=\"ToastGeneric\"\u003e\n      \u003ctext\u003eWeather app\u003c/text\u003e\n      \u003ctext\u003eExpect rain today.\u003c/text\u003e\n      \u003cgroup\u003e\n        \u003csubgroup hint-weight=\"1\" hint-textStacking=\"center\"\u003e\n          \u003ctext hint-align=\"center\" hint-style=\"header\"\u003e15°\u003c/text\u003e\n          \u003ctext hint-align=\"center\" hint-style=\"SubtitleSubtle\"\u003eRainy\u003c/text\u003e\n        \u003c/subgroup\u003e\n        \u003csubgroup hint-weight=\"1\"\u003e\n          \u003ctext hint-align=\"center\"\u003eMon\u003c/text\u003e\n          \u003cimage src=\".\\image.jpg\" hint-removeMargin=\"true\" /\u003e\n          \u003ctext hint-align=\"center\"\u003e15°\u003c/text\u003e\n        \u003c/subgroup\u003e\n        \u003csubgroup hint-weight=\"1\"\u003e\n          \u003ctext hint-align=\"center\"\u003eTue\u003c/text\u003e\n          \u003cimage src=\".\\image.jpg\" hint-removeMargin=\"true\" /\u003e\n          \u003ctext hint-align=\"center\"\u003e17°\u003c/text\u003e\n        \u003c/subgroup\u003e\n        \u003csubgroup hint-weight=\"1\"\u003e\n          \u003ctext hint-align=\"center\"\u003eWed\u003c/text\u003e\n          \u003cimage src=\".\\image.jpg\" hint-removeMargin=\"true\" /\u003e\n          \u003ctext hint-align=\"center\"\u003e21°\u003c/text\u003e\n        \u003c/subgroup\u003e\n      \u003c/group\u003e\n    \u003c/binding\u003e\n  \u003c/visual\u003e\n\u003c/toast\u003e\n''';\n\n    NotificationMessage message =\n        NotificationMessage.fromCustomTemplate(\"notificationid_1\", group: \"weather_group\");\n    _winNotifyPlugin.showNotificationCustomTemplate(message, template);\n```\n\n#### An image of the notification related to the above code\n\n![weather](https://user-images.githubusercontent.com/56779182/205485702-98ed8779-483f-433b-8f00-4ca5ca130fc5.png)\n\n\n\n\n```\n    const String template = '''\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003ctoast launch=\"callLaunchArg\" scenario=\"incomingCall\" activationType=\"protocol\"\u003e\n  \u003cvisual\u003e\n    \u003cbinding template=\"ToastGeneric\"\u003e\n      \u003ctext\u003eASGHAR CALL\u003c/text\u003e\n      \u003ctext\u003eIncoming Call\u003c/text\u003e\n      \u003cgroup\u003e\n        \u003csubgroup hint-weight=\"1\" hint-textStacking=\"center\"\u003e\n          \u003ctext hint-align=\"center\" hint-style=\"Header\"\u003eGHASEM\u003c/text\u003e\n          \u003cimage src=\".\\image.jpg\" hint-crop=\"circle\" hint-align=\"center\" /\u003e\n        \u003c/subgroup\u003e\n      \u003c/group\u003e\n    \u003c/binding\u003e\n  \u003c/visual\u003e\n  \u003cactions\u003e\n    \u003caction content=\"Text reply\" imageUri=\"\" activationType=\"protocol\" arguments=\"callReply\" /\u003e\n    \u003caction content=\"Ignore\" imageUri=\"\" activationType=\"protocol\" arguments=\"callIgnore\" /\u003e\n    \u003caction content=\"Answer\" imageUri=\"\" activationType=\"protocol\" arguments=\"callAnswer\" /\u003e\n  \u003c/actions\u003e\n\u003c/toast\u003e\n''';\n\n    NotificationMessage message =\n        NotificationMessage.fromCustomTemplate(\"notificationid_1\", group: \"weather_group\");\n    _winNotifyPlugin.showNotificationCustomTemplate(message, template);\n```\n\n#### An image of the notification related to the above code\n\n![4](https://user-images.githubusercontent.com/56779182/205485879-2ca4e45a-3209-43fa-b338-7bf30cde2ca0.png)\n\n\n\n\n### Delete all notifications sent by you from Windows Action Center\n\n```\n _winNotifyPlugin.clearNotificationHistory();\n \n```\n\n\n### Delete notifications group sent by you from Windows Action Center\nWhen creating an instance of NotificationMessage , it is possible to add group to the notification\n\n```\n   _winNotifyPlugin.removeNotificationGroup(\"groupname\");\n \n```\n\n\n### Delete single notification with id and group\nWhen creating an instance of NotificationMessage , it is possible to add group and ID to the notification\n\n```\n  _winNotifyPlugin.removeNotificationId(\"notificationid\", \"groupname\");\n \n```\n\n\n\n### Events and argruments\nTo receive your notification events, you must use the ``` initNotificationCallBack ``` method\n\n```\n   _winNotifyPlugin.initNotificationCallBack(\n        (NotificationMessage data, EventType eventType, String? arguments) {});\n\n```\n\n\n\n### Launch option\n\nThe Launch option allows you to embed your app's deep leak into the notification, and the target user will be redirected to the relevant page by tapping on the notification.\n\n```\nNotificationMessage message = NotificationMessage.fromPluginTemplate(\n  \"test1\", \"You Win\", \"Tap to receive a gift\",\n   launch: \"my-app-schame://page1\");\n   \n_winNotifyPlugin.showNotificationPluginTemplate(message);\n    \n```\n\n\n\n\n## Feature requests and bugs\n\nPlease file feature requests and bugs at the [issue tracker][tracker].\nIf you want to contribute to this library, please submit a Pull Request.\n\n[tracker]: https://github.com/MohsenHaydari/flutter_windows_notification/issues/new","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrtnetwork%2Fflutter_windows_notification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrtnetwork%2Fflutter_windows_notification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrtnetwork%2Fflutter_windows_notification/lists"}