Closed ladiesman218 closed 8 months ago
YEs it is, you should be able to just load the key however you want, but we removed the convenience method for loading it from disk, as that's not proper standard practice
I don't really know how to fix this...It's thrown from here.
Condition says if self.certificateChain.count > 0
then it gonna throw this error, so I tried set certificateChain to an empty array:
let apnsConfig = APNSClientConfiguration(
authenticationMethod: .tls(
privateKey: privateKey,
certificateChain: [chain]
),
environment: .sandbox
)
This time the error message changed to: "TLSConfiguration.privateKey is not supported. You can still use this configuration..."
That is an https://github.com/AsyncHttpClient/async-http-client question, I would ask over there
YEs it is, you should be able to just load the key however you want, but we removed the convenience method for loading it from disk, as that's not proper standard practice @kylebrowning
What someone with a TLS certificate do if the JWT token is not available?
YEs it is, you should be able to just load the key however you want, but we removed the convenience method for loading it from disk, as that's not proper standard practice
@kylebrowning
What someone with a TLS certificate do if the JWT token is not available?
Load it however you want and pass it as a string.
According to documentation https://docs.vapor.codes/advanced/apns/#configuration
But this cause errors in Xcode
And there is only one function named
tls
inAPNSClientConfiguration
struct, which looks like this:Is the documentation outdated?