सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।
windows_notification पैकेज फ्लटर एप्लिकेशन को विंडोज पर कस्टमाइज़ेबल टेम्पलेट का उपयोग करके सिस्टम नोटिफिकेशन भेजने की अनुमति देता है। यह विंडोज नोटिफिकेशन API के साथ एकीकृत है, जिससे डेवलपर्स शीर्षक, संदेश और चित्र और बटन जैसी धनात्मक सामग्री के साथ टॉस्ट नोटिफिकेशन प्रदर्शित कर सकते हैं। यह पैकेज टाइमली उपयोगकर्ता चेतावनी या स्थिति अपडेट की आवश्यकता वाले डेस्कटॉप एप्लिकेशन के लिए आदर्श है। यह सरल और उन्नत नोटिफिकेशन लेआउट दोनों का समर्थन करता है, जिससे यह उत्पादकता टूल, मैसेजिंग एप्लिकेशन और बैकग्राउंड सेवाओं के लिए उपयुक्त है। पैकेज हल्का है और विशेष रूप से विंडोज प्लेटफॉर्म के लिए डिज़ाइन किया गया है।
उपयोग
एप्लिकेशन अलर्ट भेजें
प्रणाली नोटिफिकेशन प्रदर्शित करें
उपयोगकर्ता गतिविधि याद देने वाली सूचनाएं
बैकग्राउंड टास्क नोटिफिकेशन
रियल-टाइम अपडेट प्रदर्शन
मुख्य विशेषताएँ
कस्टमाइज़ किए गए नोटिफिकेशन टेम्पलेट
चित्र जैसी समृद्ध सामग्री के लिए समर्थन
Windows नोटिफिकेशन API के साथ एकीकरण
सरल और स्पष्ट एपीआई
विंडोज के लिए प्लेटफॉर्म-विशिष्ट
इनके लिए उपयुक्त
विंडोज़ डेस्कटॉप ऐप्स
उत्पादकता उपकरण
संदेश अनुप्रयोग
बैकग्राउंड सेवाएँ
सिस्टम मॉनिटरिंग उपकरण
विचार योग्य बातें
विंडोज प्लेटफॉर्म तक सीमित
Windows 10 या उसके बाद की आवश्यकता है
Linux या macOS के लिए समर्थन नहीं है
नोटिफिकेशन के व्यवहार में विंडोज़ के संस्करण के आधार पर अंतर हो सकता है
कुछ परिवेशों में अनुमतियों के निर्माण की आवश्यकता हो सकती है
मूल README
संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।
A library for sending notifications on Windows using Flutter
Features
Sending notifications by ready-made templates of the plugin
Send notifications by user-created templates
Receive notification events sent
Delete all notifications sent by you from Windows Action Center
Delete notifications group sent by you from Windows Action Center
Add deep link to notification
Usage
Send notification with plugin template
Sending notifications through the plugin's own templates, there are currently 3 template available in the plugin.
import'package:windows_notification/notification_message.dart';
import'package:windows_notification/windows_notification.dart';
// Create an instance of Windows Notification with your application name// application id must be null in packaged modefinal _winNotifyPlugin = WindowsNotification(applicationId: "r"{D65231B0-B2F1-4857-A4CE-A8E7C6EA7D27}\WindowsPowerShell\v1.0\powershell.exe"");
// create new NotificationMessage instance with id, title, body, and imagesNotificationMessage message = NotificationMessage.fromPluginTemplate(
"test1",
"TEXT",
"TEXT",
largeImage: file_path,
image: file_path
);
// show notification
_winNotifyPlugin.showNotificationPluginTemplate(message);
Notification with imge and large image
Notification with imge
notification without any image
Send notification with custom template
You can use the template made by you to send the notification
You can find a lot of templates code with a simple search on the Internet
The 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.
NotificationMessage message = NotificationMessage.fromPluginTemplate(
"test1", "You Win", "Tap to receive a gift",
launch: "my-app-schame://page1");
_winNotifyPlugin.showNotificationPluginTemplate(message);
Feature requests and bugs
Please file feature requests and bugs at the issue tracker.
If you want to contribute to this library, please submit a Pull Request.