A Transmitly channel provider that enables sending push notifications to iOS, Android and other apps/devices using firebase.
To use the Firebase channel provider, first install the NuGet package:
dotnet add package Transmitly.ChannelProvider.Firebase
Then add the channel provider using AddFirebaseSupport()
:
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 project for more details on what a channel provider is and how it can be configured.
Copyright © Code Imperssions, LLC - Provided under the Apache License, Version 2.0.