mrtnetwork / flutter_windows_notification

A library for sending notifications on Windows using Flutter
MIT License
17 stars 4 forks source link

Is there any way to schedule daily notification for windows #25

Open manandharsudhir opened 3 days ago

manandharsudhir commented 3 days ago
final _winNotifyPlugin = WindowsNotification(applicationId: "12569HomeHealthEducationS.YouthSummitSUMMA_zpz6421j7mtxj!summaapp");

      const String template = '''
<?xml version="1.0" encoding="utf-8"?>
  <toast launch='conversationId=9813' activationType="background">
    <visual>
        <binding template='ToastGeneric'>
            <text>Some text</text>
        </binding>
    </visual>
    <actions>
        <action content='Archive'  arguments='action:archive'/>
    </actions>
</toast>
''';

 NotificationMessage message =
        NotificationMessage.fromCustomTemplate("test1", group: "jj");
    _winNotifyPlugin.showNotificationCustomTemplate(message, template);

here is my notification I want this to be called daily at an specific time

mrtnetwork commented 2 days ago
final _winNotifyPlugin = WindowsNotification(applicationId: "12569HomeHealthEducationS.YouthSummitSUMMA_zpz6421j7mtxj!summaapp");

      const String template = '''
<?xml version="1.0" encoding="utf-8"?>
  <toast launch='conversationId=9813' activationType="background">
    <visual>
        <binding template='ToastGeneric'>
            <text>Some text</text>
        </binding>
    </visual>
    <actions>
        <action content='Archive'  arguments='action:archive'/>
    </actions>
</toast>
''';

 NotificationMessage message =
        NotificationMessage.fromCustomTemplate("test1", group: "jj");
    _winNotifyPlugin.showNotificationCustomTemplate(message, template);

here is my notification I want this to be called daily at an specific time

Check out the schedule toast notification templates available online (a quick Google search will yield many options). These templates should work for your needs. something like this template

manandharsudhir commented 2 days ago

will this work when the application is not running