What is actually happening though is that the counter I'm keeping may only be incremented to 3 or 4 before saving to the database, as if the OnNotificationSucceeded has only been hit 3-4 times.
Is there a way of ensuring that all queued notifications have definitely finalised either success or failure before we stop the broker and continue executing the saving to the database?
Hi, I am new to using PushSharp on a project and have been getting OutOfMemory exceptions when we reach a number around 1300 notifications sent.
Just wondering if anyone has experienced any such issues and if you can share any tips or advice for solving the issues?
Hi, I'm having an issue with PushSharp 4.0 on .Net Core for GCM. The sample code and existing answers doesn't tell me how to read the response of a notification. I'm having inconsistent behavior in which the .Net server says the notification was sent, but the phone doesn't answer. This only happens sometimes. It seems that it happens to be due to NotRegistered issue. How to deal with that?
Hej everybody, just a heads up... A file is created in c:\programdata\microsoft\crypto\rsa\machinekeys everytime the certificate is loaded by new ApnsConfiguration(...)
If you load the cert once when the application starts you probably won't notice but we ran out of disk space and after some investigation discovered that we were loading the cert for each incoming http request! So > 10M files and >17GB. Yikes!
The work with this code is great, I'm using the dlls into a asp.net core project to expose de functionalities. Nice... now I want to send rich push notifications.
i'm facing an issue in push notification "SSL Stream Failed to Authenticate as Client"
i have tried with multiple certificates all are giving same response.
Hakkı Yağız Erdinç
is there anyone online ?
Hakkı Yağız Erdinç
@robertfriberg_twitter hi, I noticed about that folder few months ago and I could not find which service is generating these certificates. Thanks for information. Btw is there any way to cleanup or prevent generating of these files?
@blckhm_twitter We're using dependency injection and the cert was loaded in the constructor of a service class. I redesigned and made the service a singleton so now there is only one file created per process, so not really a problem for us anymore. The ApnsConfiguration class has constructor overloads where you can pass a certificate object instead of the path to the cert:
Hello There , I'am using PushSharp v4.0 to send push notifications to Android and Ios users , In Android it works well , But In Ios when I use APNS , I got the following error (ssl stream failed to authenticate as client) , pls help , I 'am stuck in this problems 3 days ubtill now , pls help.
guys i am getting following error after upgrade 4
System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.
I am using PUSHSharp library in .net application to send notification from my application to Apple device.
It's working fine on Local server but not working on my Window Hosting
I am using shared hosting and TCP IP 2195 and 2196 are closed by hosting provider, Is this issue?
Apple Notification Failed: ID=Apns notification error: 'ConnectionError', Code=System.ComponentModel.Win32Exception (0x80004005): The client and server cannot communicate, because they do
Here is an error on server
Hello, since Apple is sunsetting the binary protocol I have to migrate our APNS implementation to HTTP. In the source tree (github) its pretty clear that the Apple namespace contains implementation of the HTTP APNS protocol. However in after adding the library from nuget i cant see these classes at all (PushSharp 4.0.10). The classes im refering to are (for example) ApnsHttp2Connection.cs. Am I missing something vital here? Best//Marcus
Hello, I have the exact same issue as @marcus_falck_twitter . Is there support for the HTTP APNS protocol?
As we are informed that on 31/3/21 Apple will deprecate the binary APNS protocol , Can we still use Push sharp to send notification on ios