Server-side library for working with Expo using .Net Core 2.0+. This is a direct port of exponent-server-sdk-python
PM> Install-Package ExponentServerSdk -Version 1.1.2
The push notifications documentation is available on the expo site.
using Floxdc.ExponentServerSdk;
...
public async Task<PushResponse> SendNotification()
{
const string expoToken = "ExponentPushToken[*****]";
var client = new PushClient();
var notification = new PushMessage(expoToken, title: "A new message from your friend");
try
{
return await client.Publish(notification);
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
throw;
}
}