Closed kcfancher closed 3 years ago
I'm sure it's not a malformed p8 file
Double check it I ran into this issue and it was extra white space in the file.
I just checked, there's no whitespace except for newlines. And as I said it works in 'Push Notifications.app'.
Here's the project I'm using to test my Push Notifications outside of apnotic: https://github.com/onmyway133/PushNotifications
Double check that the connection is able to read the file and gets the correct contents.
connection.send(:certificate)
You should see something like this:
-----BEGIN PRIVATE KEY-----
YOUR_PRIVATE_KEY
-----END PRIVATE KEY-----
I've successfully used the certificate based auth, but now I'm looking to transition to token-based and I'm getting the below crash.
Below is a bare-bones test file that I've used for both cert & token based auth.
I'm sure it's not a malformed p8 file as I've tested push notifications using a standalone app for debugging APNs and it worked fine there. Any ideas or guidance?