PushSharp | side library for sending Push Notifications
kandi X-RAY | PushSharp Summary
kandi X-RAY | PushSharp Summary
PushSharp is a server-side library for sending Push Notifications to iOS/OSX (APNS), Android/Chrome (GCM/FCM), Windows/Windows Phone, Amazon (ADM) and Blackberry devices!. PushSharp v3.0+ is a complete rewrite of the original library, aimed at taking advantage of things like async/await, HttpClient, and generally a better infrastructure using lessons learned from the old code. PushSharp will now follow [semver] versioning, so major version numbers will go up as there are any breaking api changes. [Join the chat at
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of PushSharp
PushSharp Key Features
PushSharp Examples and Code Snippets
Community Discussions
Trending Discussions on PushSharp
QUESTION
A few days ago my code for sending Push notifications stopped working :(
The program began to hang on the last line apnsBroker.Stop();
I use NuGet package PushSharp.Core https://github.com/mitch-tofi/PushSharp.Core
...ANSWER
Answered 2021-Apr-27 at 13:30We're looking in to the same issue currently and it seems apple are disabling the old binary interface which push sharp uses.
https://developer.apple.com/news/?id=c88acm2b
pushsharp has it on the roadmap to support the new interface but not completed yet.
Found this library which seems easy enough to use as a solution. hope this helps.
QUESTION
I trying to send push notification to apple devices using Pushsharp library on ASP.NET MVC project hosted on IIS.
My code :
...ANSWER
Answered 2018-Jan-20 at 12:25i think the issue related to the Push Sharp so please try this solution by changeing the SSl3 to Tls in the class called ApplePushChannel.cs and here is the change
QUESTION
I am trying to send notification to update a digital card in wallet/passbook using Pushsharp. I have double-checked all these:
- Use same certificate for signing the passes and updating them
- Disabled the production/sandbox certificate check in Pushsharp
- Using the pushtoken that I got from the device. Its in this format: d30720c34af46d65e02db3c3db6Ohae04d183dfaa105133f7c21b8d1963629fe
- Generated .p12 certificate using this tutorial except following Step # 10: https://support.airship.com/hc/en-us/articles/213493683-How-to-make-an-Apple-Pass-Type-Certificate
- telnet feedback.push.apple.com 2196 is successfull
- The PassTypeIdentifier in pass.json is same as common name of the .p12 file
- The card opens perfectly on the device
- The device sends request for registering on the server
- Pull-down update works perfectly
But when I send the request for notification to APNs, the device does not hits back.
Note: I have either changed or removed urls, tokens and paths from code below because of confidentiality
Below is the code that I am using to send notification
...ANSWER
Answered 2019-Dec-21 at 16:32I figured out what the problem was. The code given in question is correct. There's no error in it.
The API was returning HTTP 404 when the device was requesting serial numbers. This was because my pass's passTypeIdentifier contained dots in it. It was like pass.acbcd.abcd. I just configured my API to allow dots in the url and everything started working fine.
QUESTION
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 certificate as .p12, .pem and tried to use only the private key as .12 or .pem but nothing works. This is my full certificate (information is blanked out for security reasons): https://cdn.pbrd.co/images/HUJtb7b.png I dont have enough reputation to post images so a link is all i can provide.
...ANSWER
Answered 2019-Jan-04 at 10:46Okay, for anyone having the same issues in the future, it turned out i needed to use the same certificate i use for signing the passes and updating them. And that you cannot use the sandbox APNS because all passbook tokens are production tokens.
QUESTION
I have implemented APNS PushSharp in asp.net web api using C# for Xamarin.ios native app. When we run api in localhost its send notification to iOS devices for both development and distribution certificate. But when we host api in IIS and call service, its fail to send notification. We did’t identify issue..can you please guide me?
...ANSWER
Answered 2018-Sep-10 at 17:14I had the same problem and I solved it by changing the identity of the application pool on which my website was running
QUESTION
I'm using PushSharp to handle push notifications for iOS.
Everything went well until I realized the way I'm handling the push isn't too powerful:
apnsBroker.QueueNotification(new ApnsNotification {
...ANSWER
Answered 2019-Mar-29 at 02:32As long as your variables are quoted (inside "
) there's no need to escape braces ({
and }
)
As for breaking the quote (having "
) inside variables, you could do something like this:
QUESTION
I'm attempting to create a p12 file for use with PushSharp to send iOS push notifications. I used this exact process a year ago to renew our certificates and it worked fine; but now it's failing at the final step.
Here is what I'm doing:
- Create a certificate signing request in Keychain Access, as a file named
CertificateSigningRequest.certSigningRequest
- Export the private key from Keychain Access, saving the file as
private_key.p12
- Go to developer.apple.com, create a production Apple Push Services certificate using the CSR file from step 1, download the file as
aps.cer
- Run the following commands in a shell (pretty much identical to what one finds on some other Stack Overflow posts):
ANSWER
Answered 2018-Aug-29 at 07:23Don't try to give a CSR file as parameter of -certfile
.
-certfile
can be used for adding additional certificates to the store.
For example CA certificates chain of the app_cert.pem:
QUESTION
I would like to use this library:
https://github.com/geeklearningio/PushSharp-Core
But I have no idea how turn this into nuget package or to include it in my existing .NET Core 1.1 app. I need to version specifically.
...ANSWER
Answered 2018-Apr-14 at 00:50That package already exists on nuget, https://www.nuget.org/packages/PushSharp
But otherwise you could use appveyor to do what you're asking https://www.appveyor.com/docs/nuget/
EDIT: If you don't own the github project/fork, you can fork it yourself and then use appveyor to create a nuget package from that.
Otherwise you can create your own nuget package manually https://docs.microsoft.com/en-us/nuget/create-packages/creating-a-package
QUESTION
I'd like to know if Azure has a service similar to pubnub and pusher. I know I can use SignalR to provide real-time communication between the back and front end and Notification Hub to push to apps, but I'd like a more comprehensive solution like pubnub/pusher. For instance, pubnub has clients for mobile AND web apps.
Could anyone shed some light here?
In case it helps, here's my setup:
So I have a server that notifies the iOS and Android apps, as well as the web app. Currently I'm using PushSharp to send push notifications to the apps and SignalR to send messages to the web app. I also use SignalR on my mobile apps.
Even though it's working I'd like a complete solution like pubnub. So does Azure provide such a service?
...ANSWER
Answered 2017-Mar-17 at 15:42This will be a short reply to your post. The answer is "No". :-)
You are currently using the best approach by combining push notifications to your mobile apps, and SignalR for your web app. There is no current Azure service offering that will allow you to send realtime notifications to both.
Source: Azure nerd and also have a situation exactly like yours where our team has to push notifications to Android, iOS, and connected web clients.
QUESTION
I am trying to get to work with xamarin notifications. For android I have followed these steps: https://developers.google.com/cloud-messaging/android/client for the client side to show the notification. On my server side I am using pushSharp plugin and everything is looks to work fine since the message from the server side is sent. The problem is that I don't get the notification on my phone. My app just crushes when I'm in debug mode or sometimes times it crushes when the app is in background too. As I can see this method :
...ANSWER
Answered 2017-Dec-13 at 09:07You could read the Xamarin official document Xamarin Google Cloud Messaging :
Here is the sample about the above document :
https://developer.xamarin.com/samples/monodroid/RemoteNotifications/
Also, please make sure Google Play Services is available in your device.
Update :Please try to add the service attribute like this :
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install PushSharp
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page