Giter Site home page Giter Site logo

expo-server-sdk-dotnet's People

Contributors

bycedric avatar dependabot[bot] avatar glyphard avatar ryankessler-transitiv avatar xenofono avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

expo-server-sdk-dotnet's Issues

Use with access token

Hi, is there a way to use an expo generated access token with this the same way some of the other sdks do?

The latest NuGet package is an old version and does not support access tokens.

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 :)

Getting System.Net.Http.HttpRequestException

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?

Cannot use component in WinForm application

Hello.
I do not understand why the component cannot be installed in my application:
Installation error

My project is a WinForm application (Application Windows Forms) using .NetFramework 4.5 but the problem also exists with version 4.6 or other.
I use Visual Studio 2015.
Thank you for any help.

PushSendAsync is always returning null.

I created a service to send notification to tokens that already being saved into a db. thats how the implementation looks like.
Screenshot 2021-08-01 at 19 14 15

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?

Way to find HTTP error codes?

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?

Error

The push api client is stuck in this line:

await _httpClient.PostAsync(path, requestBody);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.