C# Class for send push notification to firebase Send only to a one target (phone) or a topic
if you find a bug please feel free to open a new issue with the details of the bug
Copy / Add the class to your own proyect
First you need have a token from your proyect in firebase
1) Create a Object "FireBasePush" with your token proyect (from firebase proyect):
FireBasePush push = new FireBasePush("token_here");
2) Call the method SendPush:
push.SendPush(new PushMessage()
{
to = "token_target", //for a topic to": "/topics/foo-bar"
notification = new PushMessageData
{
title = "title push",
text = "body text",
click_action = click_action
},
data = new
{
example = "ey this is a example"
}
});
3) data is optional and only send "extra data" in push: