3

Using visual studio for Mac v8.4.8.

I just installed in my Xamarin project Plugin.FirebasePushNotification. Following the steps for Android https://github.com/CrossGeeks/FirebasePushNotificationPlugin/blob/master/docs/GettingStarted.md it says

Add google-services.json to Android project. Make sure build action is GoogleServicesJson

I added google-services.json to my Android project, but when I try to change the build action, GoogleServicesJson is not listed. Looking online I saw tips to get it to show up by closing the solution or clean all and build. none of these work.

Is there a step missing? Am I supposed to install another plugin?

Scott
  • 31
  • 1
  • 5
    restart Visual Studio – JeePakaJP Mar 18 '20 at 14:00
  • 3
    If the `GoogleServicesJson` build action is not shown, save and close the solution, then reopen it. – Leon Mar 19 '20 at 01:37
  • Thanks for the solutions. – Scott Mar 19 '20 at 14:03
  • Did you solve this issue? If this issue was solved, can I post my comment to answer? – Leon Mar 20 '20 at 05:29
  • restarted twice didnt work yet.. VS 2019 16.7.7 (Windows) – Mac Jan 20 '21 at 09:50
  • 1
    This answer helped me fix it in my case - https://stackoverflow.com/a/42678503/10329199. Install Xamarin.GooglePlayServices.Basement.targets – Mac Jan 20 '21 at 15:07
  • It's worth noting that I reference another VStudio project that has this NuGet dependency on Xamarin.Firebase.Messaging but the app project didn't. It compiles fine relying on the reference project NuGets but Visual Studio doesn't pick it up for the IDE build actions - more info here For me I added a firebase NuGet to ensure the build option appears - as per https://forums.xamarin.com/discussion/175159/i-didnt-find-googleservices-json-in-the-build-action? – RobbiewOnline Feb 15 '21 at 16:37

0 Answers0