Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

not receiving firebase notification from console

i am not receiving notification after sending it through firebase console , i tried sending many notification but received one or two from around 20 notifications, i followed this guide firebase messaging from github ,why am i not receiving notification, my app is installed in one emulator and in one of my phone but when i receive notification which i have sent through notification panel i get them either on phone or emulator never got them on both.

below is the screenshot of my console enter image description here

like image 249
Red Avatar asked Jul 19 '16 11:07

Red


3 Answers

  1. check your android app configuration in firebase console

  2. use a restful client to make the request, i suggest chrome-extension://aejoelaoggembcahagimdiliamlcdmfm/dhc.html, there you can see the response of the request, if your request are sent sucessfully or if you have error, and the response tells what kind of error you have

  3. check android app , in the method onMessageReceived and print everything to see if you receive information, besides you can print the property "from" who is the id_number of your proyect, and you can see if the messages come from your firebase android app

  4. check firebase documentation. I've implemented everything just with the guides and its working pretty well

like image 164
Pavul Zavala Avatar answered Nov 10 '22 12:11

Pavul Zavala


I solved the same problem.

The problem seems to be the browser compatibility/version. Mozilla Firefox could easily handle this.

  1. Make sure your app is running in the background.

  2. Open the Firebase notification console in the FireFox browser and send notifications.

like image 43
Niamatullah Bakhshi Avatar answered Nov 10 '22 11:11

Niamatullah Bakhshi


Make sure token is generated

FirebaseInstanceId.getInstance().getToken();
like image 1
Manasvi Avatar answered Nov 10 '22 12:11

Manasvi