Feature Request
Plugin
- @capacitor/local-notifications
Description
Sometimes it is important for time related tasks to show a timer inside the notification. Android supports such functionality by calling the setUsesChronometer function on the Notification.Builder class. Setting this parameter to true will add a small timer with the format "HH:mm" that is counting the duration the notification is active.
The Cordova Plugin / Local Notification supports this as androidUsesChronometer and androidShowWhen properties. Adding this feature would make migration to the capacitor plugin even more straight forward.
Platform(s)
Preferred Solution
Add a parameter called usesChronometer to the LocalNotificationSchema of the @capacitor/local-notifications Plugin. Here is an example, of how this configuration might look like:
LocalNotifications.schedule({
notifications: [
{
id: 283912,
title: 'Test Notification',
usesChronometer: true
}
]
});
Alternatives
No alternatives that come in mind.
Additional Context
I need this feature for one of my apps. It is important for the user to see how long the notification is already active.
Feature Request
Plugin
Description
Sometimes it is important for time related tasks to show a timer inside the notification. Android supports such functionality by calling the
setUsesChronometerfunction on theNotification.Builderclass. Setting this parameter totruewill add a small timer with the format"HH:mm"that is counting the duration the notification is active.The Cordova Plugin / Local Notification supports this as
androidUsesChronometerandandroidShowWhenproperties. Adding this feature would make migration to the capacitor plugin even more straight forward.Platform(s)
Preferred Solution
Add a parameter called
usesChronometerto theLocalNotificationSchemaof the @capacitor/local-notifications Plugin. Here is an example, of how this configuration might look like:Alternatives
No alternatives that come in mind.
Additional Context
I need this feature for one of my apps. It is important for the user to see how long the notification is already active.