MaikuB / MaikuB/flutter_local_notifications

[Feature request] Expose UNTimeIntervalNotificationTrigger with no repeat

Open
#2,399 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted
Dominant language
Dart
Stars
2.7k
Forks
1.6k
Avg merge
4d 8h
Merged PRs (30d)
4

Description

Hey! Currently, the plugin doesn't allow taking advantage of UNTimeIntervalNotificationTrigger with the repeat set to false and it would be really nice to have this possibility exposed within the Flutter plugin.

The plugin currently exposes periodicallyShow that uses UNTimeIntervalNotificationTrigger with the repeat true.

My use-case is using the plugin for showing a notification on closing the app. It works natively by running a scheduled notification with time interval trigger and no repeat, but does not by other means (it can also be safely called from Flutter side during app exiting so no problem on that part), but the plugin doesn't expose that.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the plugin's existing periodicallyShow entry point and its use of UNTimeIntervalNotificationTrigger. Trace how the repeat=true behavior is exposed, then define a one-shot API for repeat=false and verify that the scheduled notification uses the non-repeating trigger.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter, ios
Domain
mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.