Questions tagged [pushsharp]

It is a server-side library for sending Push Notifications to iOS/OSX (APNS), Android (GCM) and Windows (WNS).

PushSharp is a server-side library for sending Push Notifications to iOS/OSX (APNS), Android (GCM) and Windows (WNS).

261 questions
2
votes
1 answer

Not receiving Push Notifications on Android

I am not receiving my Android Push notifications. I am able to register the device receive a device identifier push the notification message to GCM I successfully enter into the Notification Sent event, but no message is received on my device. The…
user1453999
  • 158
  • 4
  • 14
2
votes
1 answer

C# .WithJson Invalid JSON Error

I'm trying to build this JSon string as follows push.QueueNotification(new GcmNotification().ForDeviceRegistrationId(RegID) .WithJson(@"{""message"":"+Message+"}")); Now whenever I run this, I get the…
user2094139
  • 327
  • 8
  • 23
2
votes
0 answers

C# PushSharp Memory Leak

I found a problem using PushSharp and I hope you bring me some light. I'm using it in a console c# application doing a while(true) waiting for fetching new push notifications to send, each time I've got new notifications in the backend I send a…
Roberto Zamora
  • 250
  • 2
  • 11
2
votes
3 answers

Send Json to APNS using Push-Sharp library

I need to send json to IOS device like this: {"aps":{"content-available":1}} Should I use AppleNotification or AppleNotificationPayLoad class? please give sample code.Here is example how I create notification now: AppleNotification…
NET
  • 289
  • 3
  • 6
  • 13
2
votes
1 answer

How to integrate Push sharp for Android GCM (Pushnotification)?

I am referring this link to implement push sharp in android, https://github.com/Redth/PushSharp#monotouch-and-mono-for-android-client-application-integration But given code is in .cs, So please suggest how to use this library in android,share any…
PrvN
  • 2,385
  • 6
  • 28
  • 30
2
votes
1 answer

Sample PushSharp code for VB.NET (apple)

I was searching for an answer to using PushSharp from a VB.NET application and was able to cobble together some code from various sources. Nothing out there had a complete example of hooking up the callbacks and using the libraries to send a…
Ed M
  • 94
  • 1
  • 7
2
votes
1 answer

MonoDroid device registeration for push notifications using PushSharp

In my monodroid application I have a problem registering some devices for push notifications using pushSharp. My general push notification setup works fine on newer devices such as SGS2, SGS3 and Nexus7, however on Legend and Hero running 2.2 and…
2
votes
1 answer

self hosted pushsharp - Events_OnNotificationSendFailure Failure: There were not enough free threads in the ThreadPool to complete the operation

i my PushSharp service is self hosted in windows service, but after a short while it always throws: Events_OnNotificationSendFailure - the exception is "There were not enough free threads in the ThreadPool to complete the operation". what is the…
2
votes
4 answers

PushSharp notifications to Apple's APNS not working, not throwing any exceptions

I have no clue why this isn't working and it's not throwing any errors either. None of the subscribed events are ever triggered (including OnNotificationSent and OnNotificationSendFailure). The code is almost identical to PushSharp's sample code in…
Diego
  • 18,035
  • 5
  • 62
  • 66
2
votes
2 answers

How to send a push notification to more than one device (iOS)?

I'm trying to optimize the push notifications on my server. For now I send those one by one (with an old library) and it takes a while (4 hours). I refactored my service to send a notification with a lot of device tokens (For now I tried with…
Alexis
  • 16,629
  • 17
  • 62
  • 107
1
vote
0 answers

iOS push notification not working after changing new http2

I am using https://github.com/Redth/PushSharp for sending VOIP push notification from my Azure hosted web api and sending VOIP message. Using same certificate for Production and Development and all works fine when debug from local host but when…
Ajai rajan
  • 163
  • 1
  • 8
1
vote
1 answer

How to send iOS - APN Notification With P12 Certificate - C# Samples

I am new to IOS APN - Notification generating service , Please help on How we can send APN from C# Windows Service - .Net Framework 4.5 / 4.7? Tired with Moon-APN , Pushsharp , DotAPN but no result. If any one have sample code with step by step…
1
vote
1 answer

IOS MDM Push Notification Issue using Pushsharp C#

We're working on an IOS MDM solution and we successfully enrolled a device. Now I'm trying to Push Notification to the device using Pushsharp running on local machine but it does not reach the device and nothing is printed in the logs on Apple…
Sudhu
  • 565
  • 8
  • 24
1
vote
1 answer

Pushsharp Apns notification error: 'InvalidToken'

I am currently working on automatic updates for Passbook (wallet) tickets and am experiencing some trouble using the Pushsharp library by Redth. I am using a Push notification certificate from the apple developer portal. I have tried to export my…
1
vote
0 answers

apns server returns "invalid device token"

I created two new certificates for iOS push notifications and exported the p12 files. The iPhone retrieves the device token, and all seems to be ok, but the application server gets the apns response "token not expired" The token i get is following…