pbr1111 / expo-server-sdk-dotnet

Server-side library for working with Expo using .NET.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Expo Server Client for .NET

Build status NuGet package NuGet package downloads

Server-side library for working with Expo using .NET.

Features

  • Use of the most recent .NET features, best practices and recommendations:
  • Exponential backoff retry policy on HTTP 429 errors (Too Many Requests) or HTTP 5xx errors.
  • Configurable options like AccessToken or MaxConcurrentRequests.
  • HttpClient configured to use Gzip and Deflate compression.
  • It is inspired by the package expo-server-sdk-dotnet so the models and the SDK client are very similar.

Usage

In your services, add services.AddExpoClient() or services.AddExpoClient(ExpoClientOptions options) to override the default options.

In your class, inject the IExpoClient service to use the Expo Push API.

ExpoClientOptions

These are the configurable options and their default values:

Options Default value Description
AccessToken Empty See Additional security to configure an accessToken.
MaxConcurrentRequests 6 Limit concurrent connections.

See Also

About

Server-side library for working with Expo using .NET.

License:MIT License


Languages

Language:C# 100.0%