byeokim / gmailpush

Gmail API push notification handler for Node.js
MIT License
54 stars 7 forks source link

Got Error: getEmailAddress() requires an argument: notification #7

Open AtitCh opened 4 years ago

AtitCh commented 4 years ago

Hi Im so confuse about this.

what is params 'notification' that's always undefined Im sorry if this is stupid question.

I just start coding.

Screen Shot 2020-08-03 at 3 50 08 PM
byeokim commented 4 years ago

notification is what Gmail API sends to your server. You can see that by console.log(req.body);