MaikuB / MaikuB/flutter_local_notifications
[Feature request] Expose UNTimeIntervalNotificationTrigger with no repeat
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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