Comments (3)
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
from apns.
![image](https://private-user-images.githubusercontent.com/7885834/295489129-7611f71d-5ac5-4138-9a3d-2f9ec448edf3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTUyODQ2NzksIm5iZiI6MTcxNTI4NDM3OSwicGF0aCI6Ii83ODg1ODM0LzI5NTQ4OTEyOS03NjExZjcxZC01YWM1LTQxMzgtOWEzZC0yZjllYzQ0OGVkZjMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDUwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA1MDlUMTk1MjU5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NTZhNjVmMTc3MDkwMTUwMmNkYjNlYWE4NDk0OTI3ZTZkM2VmNTA2YjUwNjFjYzVmYzJjYmM0YWZmMzI0MjAyZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.AhFKqPgBvdz0ohSZVh2Jn-hAhh0XzujMo96Uyh2DfdQ)
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..."
from apns.
That is an https://github.com/AsyncHttpClient/async-http-client question, I would ask over there
from apns.
Related Issues (20)
- A new connection to APN server created for each request. HOT 15
- Allow swapping of configurations HOT 6
- Mock client for testing HOT 4
- Tag a new relaease? HOT 1
- Connection deadlock after random time HOT 6
- Connection timed out deadlock issue HOT 6
- Jan 9 HOT 2
- Bundle GeoTrust Global CA certificate HOT 1
- Support for sending PushNotifications via ProxyServer HOT 7
- Pass `Request.logger` as default logger parameter HOT 3
- Can't send "contentAvailable" on it's own HOT 14
- Getting invalidProviderToken HOT 1
- Feature Request: How to register the APNSClient with Application? HOT 1
- Update to 4.0.0-beta.2 not working HOT 3
- APNS package not found HOT 3
- Cannot find 'APNSAlertNotification' in scope HOT 1
- The operation could not be completed. (APNSCore.APNSError error 1.) HOT 6
- Use Data, not ByteBuffer HOT 1
- Doesn't work with certificates HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apns.