Skip to content

About

C# Class for send push notification to firebase

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

NetFireBasePush

C# Class for send push notification to firebase Send only to a one target (phone) or a topic

Some bugs?

if you find a bug please feel free to open a new issue with the details of the bug

How to use

Copy / Add the class to your own proyect

How to send push

First you need have a token from your proyect in firebase

Example

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": "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/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:

About

C# Class for send push notification to firebase

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages