Skip to content

Instantly share code, notes, and snippets.

View cleardemon's full-sized avatar
🐺
Awoo.

Bart King cleardemon

🐺
Awoo.
View GitHub Profile

Keybase proof

I hereby claim:

  • I am cleardemon on github.
  • I am cleardemon (https://keybase.io/cleardemon) on keybase.
  • I have a public key ASCocbz_lWscsthFdcbu19YC5eZzI660C0-r8bpWZcRnNwo

To claim this, I am signing this object:

@cleardemon
cleardemon / Program.cs
Created December 9, 2021 11:18
How to send a push notification from C# console to Firebase
/* Requires these packages to be included in the project (or whatever latest versions are available):
<PackageReference Include="FirebaseAdmin" Version="2.2.0" />
<PackageReference Include="System.Text.Json" Version="6.0.0" />
*/
using System;
using System.Collections.Generic;
using System.IO;
using System.Text.Json;
using System.Text.Json.Serialization;