An open API service indexing awesome lists of open source software.

https://github.com/transmitly/transmitly-channel-provider-firebase

Extends Transmitly to enable sending push notifications with https://firebase.google.com/
https://github.com/transmitly/transmitly-channel-provider-firebase

fcm firebase firebase-admin firebase-admin-sdk push push-notifications transmitly

Last synced: 7 months ago
JSON representation

Extends Transmitly to enable sending push notifications with https://firebase.google.com/

Awesome Lists containing this project

README

          

# Transmitly.ChannelProvider.Firebase

A [Transmitly](https://github.com/transmitly/transmitly) channel provider that enables sending push notifications to iOS, Android and other apps/devices using [firebase](https://firebase.google.com/).

### Getting started

To use the Firebase channel provider, first install the [NuGet package](https://nuget.org/packages/transmitly.channelprovider.firebase):

```shell
dotnet add package Transmitly.ChannelProvider.Firebase
```

Then add the channel provider using `AddFirebaseSupport()`:

```csharp
using Transmitly;
...
var communicationClient =
new CommunicationsClientBuilder()
.AddFirebaseSupport(options =>
{
options.Credential = FirebaseCredential.GetApplicationDefault();
})
.AddPipeline("WelcomeKit", options =>
{
options.AddPushNotification(push =>
{
push.Title.AddStringTemplate("Welcome!");
push.ImageUrl.AddStringTemplate("https://transmit.ly/assets/welcome.png");
push.Body.AddStringTemplate("Thanks for signing up! Here's 500 bonus points on us.");
});
});
```
* See the [Transmitly](https://github.com/transmitly/transmitly) project for more details on what a channel provider is and how it can be configured.

---
_Copyright © Code Impressions, LLC. This open-source project is sponsored and maintained by Code Impressions
and is licensed under the [Apache License, Version 2.0](http://apache.org/licenses/LICENSE-2.0.html)._