0

I have been trying to make the FirebasePushNotification plugin work. But so far i haven't had much chance. The notification is sent but nothing happen. I guess it's intercepted because i dont receive it (I tried sending notifs without the plugin it works well) but the code i put in the OnNotificationReceived event isn't triggered. If some one can help me on this that would be great.

So I decided to download their sample and try to make it work. But I am facing a problem. I deleted their google-services.json. Then I went to the firebase console to create a new one. I added the file to the android project and I reopened the solution. But when I try to set the file property to GoogleServicesJson there isn't this option on the menu.

I tried to close and reopen the solution multiple times but no luck.

What could i try to force this property ?

I thank you for your time.

Youcef Lebid
  • 51
  • 1
  • 6
  • Try clean and rebuild. Then close and open VS – Anand Apr 29 '20 at 06:32
  • @Anand It didn't work. Thank you anyway. – Youcef Lebid Apr 29 '20 at 06:41
  • Do you test on android real device ? Is `OnNotificationReceived` not triggered in foreground or backgound ? – ColeX Apr 29 '20 at 07:51
  • @Cole Xia - MSFT : Yes i test on a real device. OnNotificationReceived isn't triggered on both. – Youcef Lebid Apr 29 '20 at 08:03
  • One more question , what's the version are you using ? Is it the latest ? – ColeX Apr 29 '20 at 08:41
  • @Cole Xia - MSFT : if your are talking about the plugin, yes. I am also using android 9 for the project xamarin android. And android 8.0.0 for the phone which is a samsung galaxy s8. – Youcef Lebid Apr 29 '20 at 09:06
  • How do you send the payload ? please check the tutorial : https://github.com/CrossGeeks/FirebasePushNotificationPlugin/blob/master/docs/FirebaseNotifications.md – ColeX Apr 29 '20 at 11:32
  • @Cole Xia - MSFT : I send it throw the firebase console. – Youcef Lebid Apr 29 '20 at 12:19
  • You can edit project file and add it https://stackoverflow.com/questions/33435552/where-can-i-add-google-services-json-in-xamarin-app – Morse Apr 29 '20 at 14:49
  • Does this answer your question? [Where can i add google-services.json in xamarin app](https://stackoverflow.com/questions/33435552/where-can-i-add-google-services-json-in-xamarin-app) – Morse Apr 29 '20 at 14:57

0 Answers0