-
Notifications
You must be signed in to change notification settings - Fork 677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Pass Type ID #51
Comments
Hi @huntermonk, I've not used such certificate yet, but it wouldn't be hard to add support. In I can do this, but I would need to know the prefix that Apple uses for the certificate name. For a regular iOS push certificate this name start with Thanks |
Hey @leonardvandriel, sorry for the slow reply! I'll be much quicker on subsequent responses. Pass Type certificates are prefixed with |
I added this certificate prefix. Could you check out commit 9371147 and run PusherMac to see if the certificate shows up in the dropdown? |
The error indicates that the payload was pushed out, but the server disconnected ( |
Oh ok interesting. I did not receive a payload on the device unfortunately. Anything else I should try? |
I'm not sure. A couple of maybes:
Sorry, that's all i got at this point. You can always step through the code to see where the error exactly occurs and what happens before. For example take a look at |
@huntermonk I was taking a closer look at the docs (Updating a Pass). Under "Your Server Sends a Push Notification When Something Changes" it says
So i was wondering: what is the payload that you're sending and have you tried variations on that? Perhaps the app needs support for zero-length payloads. |
Continuing my previous comment: try sending payload |
Nice! Thanks for being so thorough. We actually do have this working in our staging environment. The correct "empty" payload to send is:
If I don't find anything interesting on the binary interface question, I think my best next step is to step through the code as you suggested. I am a little intimidated 😊, but it is on my list for tomorrow! |
Interesting, I wouldn't have guessed The APNS servers behave in mysterious ways, so it might be worth taking a closer look at what exactly you send out and what comes back. Some guidelines:
|
I feel bad about this, but I'm not going to end up solving this. You've been excellent to work with and I wish I could do more to help, but I'm still fairly novice. I really appreciate your help, and you've made an excellent product. I suggest it to others quite often. I'm figuring you would rather hear this than me just not responding. Let me know if there's anything else I should do! |
no problem, thanks for reporting the issue and taking a closer look. I'll leave this issue open and marked as bug. |
Great, I appreciate the understanding. |
Just to let you know - it works with Pass Type ID (I've got unticked Sandbox environment though) |
It appears that NWPusher does not support Pass Type ID certificates.
These certificates are used for sending push notifications wallet passes. You use the same certificate for signing a certificate and for sending pushes.
How could we get support for this added in?
Thanks for your consideration! I really appreciate it.
The text was updated successfully, but these errors were encountered: