Software Developer, mostly working on backend solutions. Also interested in blockchain technology along with algorithms, and performance optimized code.
Hi David,
Excellent tutorial, you covered all of the things perfectly! Just a heads up that when sending the notification when the app is in the foreground does not log the payload in the console, I'll try to post the solution here if I find it.
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 foregroundmessaging.onMessage((payload)=>{console.log(payload);});
Looking forward to hear about it!
Best
David
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi David,
Excellent tutorial, you covered all of the things perfectly! Just a heads up that when sending the notification when the app is in the foreground does not log the payload in the console, I'll try to post the solution here if I find it.
Best,
Ognjen
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.
Looking forward to hear about it!
Best
David