react-native-notifications icon indicating copy to clipboard operation
react-native-notifications copied to clipboard

please allow to local notification Id resued and locationNotifcation could accepts "tag" arguments

Open xiechao06 opened this issue 8 years ago • 3 comments

Use Case

Version: React native 0.52.0/android 7.0 I want to show a local notification with a download progress bar, but I can't use the existed notification, localNotification will not accept the parameter notificationId, instead I must use:

let notificationId = NoficationsAndroid.localNotification({ title: 'downloading...', progress: 0 })
....
NativeModules.WixRNNotifications.postLocalNotification({
      title: 'downloading',
      progress: received / total,
}, notificationId)
...

Expectation

provide the method with signature:

/**
 * @param notificationId - if not defined, create a new notification
 */
locationNotification(bundle: object, notificationId: int?)

and

/**
 * @param tag - the tag of notification, convenient to distinguish which kind of notification it is
 * @param notificationId - if not defined, create a new notification
 */
locationNotification(bundle: object, tag: string, notificationId: int?)

xiechao06 avatar May 26 '18 04:05 xiechao06

@lidanh Please check this issue

AbdullahADhaim avatar Jul 12 '19 13:07 AbdullahADhaim

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

stale[bot] avatar Aug 11 '19 13:08 stale[bot]

The issue has been closed for inactivity.

stale[bot] avatar Aug 18 '19 14:08 stale[bot]