react-native-notifications
react-native-notifications copied to clipboard
please allow to local notification Id resued and locationNotifcation could accepts "tag" arguments
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?)
@lidanh Please check this issue
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
The issue has been closed for inactivity.