Toast Display: In your sendNotification() method, you're attempting to display a Toast message from a background thread by using a Handler to post the operation on the main looper. However, the FirebaseMessagingService already runs on the main thread, so there's no need for the Handler. You can directly display the Toast without the Handler'
best example for beginner and way of explain is very simple point to point, I am trying push notification first time and this tutorial is solve my complete problem
Hi, your tutorial is simple and neat. First time i tried with a project and i got to a point that i could generate the FMC token but i couldnt have the messages been pushed to the emulator. Created a new project and retried but this time, its stopped at ":E/FirebaseMessaging: Topic sync or token retrieval failed on hard failure exceptions: java.util.concurrent.ExecutionException: java.io.IOException: AUTHENTICATION_FAILED. Won't retry the operation." I couldnt even get the FCM token, Everytime i create a new FB project in FB console. Has anyone experienced the same? I use Pixel 5 API 22, 32, 30
Thank you very much. Google should learn from you, how to create tutorial and documentation. Further if I have the token id, can I develop my own pc based application to send notification to phones via Firebase cloud messaging without suing cloud console. Thanks
thank you for the video question is it okay not to display the token on the main activity and just when clicking the notification it just opens the main activity?
Hi. Very useful tutorial. I am facing issue with android 12. When app closed its not getting push notification. But upto android 11 its working. Can you please suggest about android 12 related issue
I have tried many time , I success got the token in virtual device phone ,but virtual device phone nerver receive Topic message from FCM consol.....Help ....
greetings, I hope all is well. I generated a debug apk and noticed it isnt receiving any notifications. i added the sha1 key to it. it only works when i install the app directly to my device. do i need to do any further steps so this works? thank you in advance!
Service would probably be running on a worker thread (other than the Main UI thread), thus you can't interact with anything on the main thread. So in order to interact with the main thread on the background thread, one can use a "Handler" with "Looper.getMainLooper()" as parameter, to pass events (in this case, a mere toast) to the main thread.
very helpful for me. i have see many other videos but i can't understand
thank you for this simple tutorial
Sweet & Simple Tutorial for understanding Notifications. Precise to the point. 🤩
Toast Display: In your sendNotification() method, you're attempting to display a Toast message from a background thread by using a Handler to post the operation on the main looper. However, the FirebaseMessagingService already runs on the main thread, so there's no need for the Handler. You can directly display the Toast without the Handler'
Thank you very much. Very useful, it resolve my problem which took me 4 days to find out
sorry how did he generate that toast message code at 13:12
best example for beginner and way of explain is very simple point to point, I am trying push notification first time and this tutorial is solve my complete problem
clear and specific tutorial, very Good. keep going on this... I am sure you will get much support...
thank you
What an amazing video. I don't usually comment but you deserve it :D
simple and easy to understand tutorial
Hi, your tutorial is simple and neat. First time i tried with a project and i got to a point that i could generate the FMC token but i couldnt have the messages been pushed to the emulator. Created a new project and retried but this time, its stopped at ":E/FirebaseMessaging: Topic sync or token retrieval failed on hard failure exceptions: java.util.concurrent.ExecutionException: java.io.IOException: AUTHENTICATION_FAILED. Won't retry the operation." I couldnt even get the FCM token, Everytime i create a new FB project in FB console. Has anyone experienced the same? I use Pixel 5 API 22, 32, 30
did everything got the token but when I try to test it no message arrives.. not even in background..
Very Good Learning....Thanks a Lot for your Lesson.👌
Top, excellent tutorial, simple and objective. Thank you!
Love this tutorial. Very simple and clear
How to implement a fixed notification message that will appear in both foreground and background that only triggers by conditional statements?
Thank you, it works exactly as in video👍
Tnx very simple 😘😘😘😘😘😘
Good job bro. It helped me a lot. the easiest of all.
Thank you very much. Google should learn from you, how to create tutorial and documentation. Further if I have the token id, can I develop my own pc based application to send notification to phones via Firebase cloud messaging without suing cloud console. Thanks
There is a way to do it automatically (without clicking manually on the button in the firebase website)?
Im waiting for this question to be answered please before our project defense
Thank you so much! Super! You're great!
thank you for the video question is it okay not to display the token on the main activity and just when clicking the notification it just opens the main activity?
Thanks For the best Explanation 👌
Thanks a Lot for your Lesson
Niceeeeeeeeeeeee amazing so simple and fast. That's All :)
Thanks very much, from Argentina! Excelente video!
Best explanation
Sou Brasileiro, Parabens pelo video!!!!!!!!! muito bom !!
Great Tutorial!.. Thanks for sharing
Hi. Very useful tutorial. I am facing issue with android 12. When app closed its not getting push notification. But upto android 11 its working. Can you please suggest about android 12 related issue
Awesome tutorial brother...
I have tried many time , I success got the token in virtual device phone ,but virtual device phone nerver receive Topic message from FCM consol.....Help ....
greetings, I hope all is well. I generated a debug apk and noticed it isnt receiving any notifications. i added the sha1 key to it.
it only works when i install the app directly to my device.
do i need to do any further steps so this works?
thank you in advance!
Thank you sir!!! It was very useful!!
will the background notification still work even if the app just terminated?
How to send this notification to already installed device ( using pakage name)
13:09 what have you done here please !! How did you display this
you cannot display the toast from the service. the service should inform the activity to display a toast
Service would probably be running on a worker thread (other than the Main UI thread), thus you can't interact with anything on the main thread.
So in order to interact with the main thread on the background thread, one can use a "Handler" with "Looper.getMainLooper()" as parameter, to pass events (in this case, a mere toast) to the main thread.
Nice Explanation !!
Thank you!!! It was very useful!!
Next video on Google authentication :)
Hey man, awesome tutorial. Could you please guide me on how to get the device token while using webview
i need to know asap too please
I didn't receive the push notification
is it have any alternative solutions??????
Great video
send notification InApp not working? can you show me?
Please upload video i want to send notification for all users who are all installed my application using pakage name😢😢😢
Do you know how to send notification on installed device?😢 Sir
Cool tutorial!
Thank you 💗
not working on android version 10
King, thank you !!
Is there a way to send notifications to multiple devices but not only one device? Thanks
Do you know how to send notification on installed device?😢 Sir
How to add accept reject button in notification
Hi, can you help me please
not working on real device what should i do??
13:07 how to display a toast ???
Reply ASAP Please
Toast.makeText(this, "your message here", Toast.LENGTH_LONG).show();
How do I automate this
Love You Brroder
Thank you!
Download link not working
Thanks youuuuu
not received on device
thnx bro
I am waiting for your reply sir
😢
Whats the point ?