DEV Community

[Comment from a deleted post]
Collapse
 
daviddalbusco profile image
David Dal Busco • Edited

Hi Ognjen,

Thank you for the feedback!

That would be cool if you find a solution. When I wrote the tutorial I was able to log the notifications when the app was in foreground as I displayed above but yes maybe that isn't valid anymore.

// Listen to messages when your app is in the foreground
messaging.onMessage((payload) => {
    console.log(payload);
});

Looking forward to hear about it!

Best
David