We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 721f7d8 commit 7ce1eaeCopy full SHA for 7ce1eae
cli/index.js
@@ -198,8 +198,15 @@ async function fcmListen(options) {
198
// parse notification body
199
const body = JSON.parse(notification.data.body);
200
201
+ // generate timestamp
202
+ const timestamp = new Date().toLocaleString();
203
+
204
+ // log timestamp the notification was received (in green colour)
205
+ console.log('\x1b[32m%s\x1b[0m', `[${timestamp}] Notification Received`)
206
207
// log notification body
208
console.log(body);
209
210
});
211
}
212
0 commit comments