Closed grosch closed 2 years ago
We should allow registering multiple configurations based on some identifier. For example:
app.apns.configurations[.foo] = ...
req.apns(.foo).send(..., to: ...)
This would also be really great for being able to switch between production and sandbox targets based on the auth token
Any update on this? I'd love to be able to use APNSwift with two different topics (one for my beta bundle identifier and one for the bundle identifier with which I'm shipping to the App Store).
I don't believe this has progressed yet. Feel free to open a PR if you can though!
I have opened a PR for this https://github.com/vapor/apns/pull/37
This is fixed in #46
Please provide a way that a single server app can support both the normal app's push notification (i.e. via the p8) and also passkit notifications (i.e. via the PEM files).
Right now we can't swap between configurations, to the best of my knowledge, because one thread might set it to config A, then another thread sets it to B, and then thread A tries to do the push and fails.