https://github.com/kirillta/exponent-server-sdk-netcore
A port of exponent-server-sdk-python for .Net Core
https://github.com/kirillta/exponent-server-sdk-netcore
exponent exponent-server-sdk react-native
Last synced: 28 days ago
JSON representation
A port of exponent-server-sdk-python for .Net Core
- Host: GitHub
- URL: https://github.com/kirillta/exponent-server-sdk-netcore
- Owner: kirillta
- License: mit
- Created: 2018-01-12T12:23:10.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-04-30T09:22:08.000Z (about 3 years ago)
- Last Synced: 2025-04-19T23:53:03.627Z (28 days ago)
- Topics: exponent, exponent-server-sdk, react-native
- Language: C#
- Homepage:
- Size: 37.1 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: License.md
Awesome Lists containing this project
README
# exponent-server-sdk-netcore #
Server-side library for working with Expo using .Net Core 2.0+.
This is a direct port of [exponent-server-sdk-python](https://github.com/expo/exponent-server-sdk-python)### Installation ###
```
PM> Install-Package ExponentServerSdk -Version 1.1.2
```### Usage ###
The push notifications [documentation](https://docs.expo.io/versions/latest/guides/push-notifications.html) is available on the expo site.
```cs
using Floxdc.ExponentServerSdk;...
public async Task 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;
}
}
```