flutter_local_notifications icon indicating copy to clipboard operation
flutter_local_notifications copied to clipboard

[flutter_local_notifications] Add "selectable" property for AndroidNotificationDetails to disable click actions on the notification

Open tranleo148 opened this issue 1 year ago • 1 comments

This PR introduces a new option to disable click actions on notifications from Flutter. In Android, disabling click actions on a notification is achieved by setting the contentIntent to null when building the notification. Currently, there is no option in Flutter to disable the click action.

To address this, I have added a new selectable property that allows developers to control whether the notification is selectable or not. When selectable is set to false, the contentIntent will be set to null, disabling click actions on the notification.

  • Default Behavior: The default value of selectable is true, ensuring that existing behavior is not affected unless explicitly changed.
  • Impact: This change is backward-compatible and will not affect notifications unless the new property is utilized.

tranleo148 avatar May 29 '24 11:05 tranleo148

@tranleo148 I saw a notification that updated your branch. In case you missed it, I requested changes on this PR a while back. Are you going to be able to take a look?

MaikuB avatar Oct 13 '24 00:10 MaikuB