Skip to content
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

Make APNSEnvironment public #423

Open
joshuapoq opened this issue Feb 4, 2025 · 2 comments
Open

Make APNSEnvironment public #423

joshuapoq opened this issue Feb 4, 2025 · 2 comments

Comments

@joshuapoq
Copy link

With version 19 we have no access to .validate() using the 'current' environment if it can be determined.

Looking into the code you have an APNSEnvironment struct that has public static func isProduction() functions that would bridge this gap.

The main struct is not public so these are not accessible; please could that be changed?

@rlepinski
Copy link
Contributor

Yep we can expose that struct. The validate is just checking the credentials. If you are setting both I would just validate both types each time.

@rlepinski
Copy link
Contributor

This is going to be bundled with 19.1.0, hopefully next week. For now you can just copy the struct to your app so you are not blocked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants