glyphard / expo-server-sdk-dotnet Goto Github PK
View Code? Open in Web Editor NEWServer-side library for working with Expo using .Net
License: MIT License
Server-side library for working with Expo using .Net
License: MIT License
Hi, guys.
Can you update NuGet package to the current version, please?
Thanks in advance.
Hi, is there a way to use an expo generated access token with this the same way some of the other sdks do?
Hi,
I wanted to restrict the push notifications with the access token. As it says here
However, I quickly realised that there is no way to pass the token to the HttpClient or otherwise in the latest Expo.Server.SDK Nuget Package.
However, the source code here in the repository supports this, which is why I have now copied the source code as an interim solution.
It would be great if we could have the latest version of the source code as a NuGet package.
Thanks :)
I would like to migrate to the new API for Android notifications. Could we add a way to specify this (https://exp.host/--/api/v2/push/send?useFcmV1=true
)?
Hello, several times when I call PushSendAsync
I get exceptions such as:
System.Net.Http.HttpRequestException An error occurred while sending the request. Void Throw()
WebException The underlying connection was closed: An unexpected error occurred on a send. System.IO.Stream EndGetRequestStream(System.IAsyncResult, System.Net.TransportContext ByRef)
IOException Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. Void EndWrite(System.IAsyncResult)
SocketException An existing connection was forcibly closed by the remote host Int32 EndReceive(System.IAsyncResult)
What could cause this?
I created a service to send notification to tokens that already being saved into a db. thats how the implementation looks like.
I have also followed this tutorial.
My problem everything is working fine in development but not in production. The PushSendAsync is always returing null.
Am I missing something?
Hi,
We want to basically catch HTTP error codes - 429 and 5XX errors in case the Expo Push Notification service is down so that we can implement retry on failure as suggested by Expo here - https://docs.expo.dev/push-notifications/sending-notifications/#retry-on-failure using Exponential Backoff.
Currently this code -
if (response.IsSuccessStatusCode) { var rawResponseBody = await response.Content.ReadAsStringAsync(); responseBody = JsonConvert.DeserializeObject<U>(rawResponseBody); }
is catching all the push notifications that are hitting the Expo's push notification service without any HTTP status code which makes it even more difficult.
Could we perhaps find a way to address this?
Mistake in the name.
The push api client is stuck in this line:
await _httpClient.PostAsync(path, requestBody);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.