MaikuB / MaikuB/flutter_local_notifications

Callback on scheduled notification shown (Android)

Open
#1,699 6 comments 5 reactions 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

Now that the plugin is open to running Flutter code in the background, what about optionally firing a callback when a scheduled notification is shown to the user? I think it's only doable on Android, so it would probably be an optional callback in AndroidInitializationSettings, with similar restrictions as onDidReceiveBackgroundNotificationResponse in initialize().

If the idea sounds reasonable, I might be able to prepare a merge request on my own.

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 by reading AndroidInitializationSettings and the initialize() API, then compare the proposed callback with the restrictions described for onDidReceiveBackgroundNotificationResponse. Done means an optional Android callback fires when a scheduled notification is shown, while preserving the existing background-execution restrictions.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, dart, flutter
Domain
mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.