From 0d14a5e3b30dc428e89ad161368d872f7a908146 Mon Sep 17 00:00:00 2001 From: Ryan Grey Date: Fri, 27 Jul 2018 09:03:00 +0100 Subject: [PATCH] add notificationId to logging --- lib/modules/notifications/index.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/modules/notifications/index.js b/lib/modules/notifications/index.js index dacb3c9b..01dcaf4d 100644 --- a/lib/modules/notifications/index.js +++ b/lib/modules/notifications/index.js @@ -91,11 +91,17 @@ export default class Notifications extends ModuleBase { (notification: NativeNotification) => { const rnNotification = new Notification(notification); const done = Platform.select({ - ios: (fetchResult: string) => + ios: (fetchResult: string) => { + getLogger(this).debug( + `Completion handler called for notificationId=${ + rnNotification.notificationId + }` + ); getNativeModule(this).complete( rnNotification.notificationId, fetchResult - ), + ); + }, android: () => {}, });