add notificationId to logging

This commit is contained in:
Ryan Grey 2018-07-27 09:03:00 +01:00
parent fac0767d5d
commit 0d14a5e3b3
1 changed files with 8 additions and 2 deletions

View File

@ -91,11 +91,17 @@ export default class Notifications extends ModuleBase {
(notification: NativeNotification) => { (notification: NativeNotification) => {
const rnNotification = new Notification(notification); const rnNotification = new Notification(notification);
const done = Platform.select({ const done = Platform.select({
ios: (fetchResult: string) => ios: (fetchResult: string) => {
getLogger(this).debug(
`Completion handler called for notificationId=${
rnNotification.notificationId
}`
);
getNativeModule(this).complete( getNativeModule(this).complete(
rnNotification.notificationId, rnNotification.notificationId,
fetchResult fetchResult
), );
},
android: () => {}, android: () => {},
}); });