mistrypragnesh40 / PushNotificationDemoMAUI

33 stars 10 forks source link

How to Populate File admin_sdk.json #6

Closed cworth33 closed 1 year ago

cworth33 commented 1 year ago

Got null exception error around line 44 of MainPage.xaml.cs It appears that I don't know how to get the file "admin_sdk.json" with the correct contents.

Where/how do I obtain this file? Is this file different than "google-service.json"? Does this file need a different build action, it was set to MauiAsset in the solution.

I have watched the android video and I don't see where you talk about this file.

cworth33 commented 1 year ago

I figured it out, I had to go into firebase console and go to project settings-->service accounts-->generate new private key and grab the JSON that was generated.

I'm now able to use the app to send a message.

Going to do some more testing to see if I can send push notifications from external api as this is my goal.

cworth33 commented 1 year ago

Closing this issue.