Server-side library for working with Expo using .NET.
- Use of the most recent .NET features, best practices and recommendations:
- IHttpClientFactory.
- System.Text.Json and System.Net.Http.Json.
- Records.
- 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.
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.
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. |