Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display scheduled notification conditionally #2281

Closed
Ran-E opened this issue Mar 27, 2024 · 1 comment
Closed

Display scheduled notification conditionally #2281

Ran-E opened this issue Mar 27, 2024 · 1 comment

Comments

@Ran-E
Copy link

Ran-E commented Mar 27, 2024

I am using flutter_local_notifications plugin to schedule notifications, but I want to achieve two things.

  • The scheduled notification should run some code every time, before showing the notification to check whether or not to display the notification.
  • I want to specify a custom time interval, instead of the options given by RepeatInterval
@MaikuB
Copy link
Owner

MaikuB commented May 17, 2024

This isn't possible via the plugin. This is something you would need to investigate further for your app. What you're describing is scheduling a notification but scheduling general logic to run that may then trigger a notification to show. This may be where you may need to consider plugins such as https://pub.dev/packages/workmanager

@MaikuB MaikuB closed this as completed May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants