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

[local-notifications] update visible notification #2252

Open
jberns88 opened this issue Nov 21, 2024 · 0 comments
Open

[local-notifications] update visible notification #2252

jberns88 opened this issue Nov 21, 2024 · 0 comments
Labels
platform: android type: feature request A new feature, enhancement, or improvement

Comments

@jberns88
Copy link

Feature Request

Plugin

local-notifications

Description

I'm trying to create an ongoing notification that can be updated without being replaced (a simple timer). Currently when scheduling a notification with the same ID, LocalNotificationManager -> schedule -> dismissVisibleNotification is called causing the notification to be replaced each time. Simply commenting out the line dismissVisibleNotification(id) achieves the desired result as android will not replace the notification only update it.

Platform(s)

Android

Preferred Solution

Add something to the ScheduleOptions/LocalNotificationSchema to make it optional

Alternatives

Remove dismissVisibleNotification(id) ? I'm sure this will have side effects that I'm not aware of.

Additional Context

https://github.com/ionic-team/capacitor-plugins/blob/8449b188496d710699bc6f5bc031a28f44e29fbe/local-notifications/android/src/main/java/com/capacitorjs/plugins/localnotifications/LocalNotificationManager.java#L147C1-L147C44

@ionitron-bot ionitron-bot bot added the triage label Nov 21, 2024
@ionitron-bot ionitron-bot bot removed the triage label Nov 21, 2024
@alexgerardojacinto alexgerardojacinto self-assigned this Dec 3, 2024
@alexgerardojacinto alexgerardojacinto added the type: feature request A new feature, enhancement, or improvement label Dec 3, 2024
@alexgerardojacinto alexgerardojacinto removed their assignment Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: android type: feature request A new feature, enhancement, or improvement
Projects
None yet
Development

No branches or pull requests

3 participants