flutter_windows_notification
flutter_windows_notification copied to clipboard
Is there any way to schedule daily notification for windows
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
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
will this work when the application is not running
@mrtnetwork the above answer that you have provided is just a Template right so I wanted to show the notification at exact specified time daily. How can I do this please would you mind help me figure this out
@mrtnetwork the above answer that you have provided is just a Template right so I wanted to show the notification at exact specified time daily. How can I do this please would you mind help me figure this out
I don't work with Windows, so I'm not familiar with the specifics. I recommend checking the Microsoft documentation for answers. If you find what you're looking for and need to implement any features into this plugin, please let me know. I'll do my best to implement it as soon as possible. Currently, I don't have access to a Windows machine.