A server-side library for sending Push Notifications to iOS (iPhone/iPad APNS), Android (C2DM and GCM - Google Cloud Message), Windows Phone, Windows 8, Amazon, Blackberry, and (soon) FirefoxOS devices!
Other
4.38k
stars
1.52k
forks
source link
Does PushSharp currently handle Apple Wallet/Passkit/Passbook notifications? #771
I'm attempting to send an Apple Wallet notification in order to update passes, but I'm unable to, whether because it tells me it's an invalid cert (which my .p12 is not) or because it tells me it's an invalid device ID (which is what the Apple Wallet has returned to begin with).
What are the steps required to reproduce this issue?
I've build a simple HTTP endpoint that implements the sample code for APNS notifications and sent it to particular devices with our cert.
Please provide any Exception Stack Traces
When trying to use the cert and allowing the library to verify that it is, indeed, a valid certificate: "Your Certificate is not a valid certificate for connecting to Apple's APNS servers"
When skipping verification and sending a Wallet-generated device ID with a generic payload (which I know it will still be ignored, but that's OK):
APNS-CLIENT[1]: Send Batch Error: Batch ID=1, Error=PushSharp.Core.NotificationException: Invalid DeviceToken Length
at PushSharp.Apple.ApnsNotification.ToBytes () [0x00098] in <filename unknown>:0
at PushSharp.Apple.ApnsConnection.createBatch (System.Collections.Generic.List`1 toSend) [0x0002c] in <filename unknown>:0
at PushSharp.Apple.ApnsConnection+<SendBatch>d__21.MoveNext () [0x0013a] in <filename unknown>:0
2016-11-09 16:45:03.PM [INFO] APNS-Client[1]: Sent Batch, waiting for possible response...
Thanks much in advance for any insight! (It appears it was possible in the 2.x version of the library, which I don't know whether it's been fully deprecated at this point...)
What version of PushSharp are you using?
4.0.10
Describe your issue:
I'm attempting to send an Apple Wallet notification in order to update passes, but I'm unable to, whether because it tells me it's an invalid cert (which my .p12 is not) or because it tells me it's an invalid device ID (which is what the Apple Wallet has returned to begin with).
What are the steps required to reproduce this issue?
I've build a simple HTTP endpoint that implements the sample code for APNS notifications and sent it to particular devices with our cert.
Please provide any Exception Stack Traces
"Your Certificate is not a valid certificate for connecting to Apple's APNS servers"
Thanks much in advance for any insight! (It appears it was possible in the 2.x version of the library, which I don't know whether it's been fully deprecated at this point...)