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

Bad APNS server selected in this case #167

Open
oguilbaud opened this issue Jul 26, 2023 · 0 comments
Open

Bad APNS server selected in this case #167

oguilbaud opened this issue Jul 26, 2023 · 0 comments

Comments

@oguilbaud
Copy link

If the name of the application and/or the name of the certificate file contain ".dev", the APNS server is systematically the Apple development server.
(for me this is a big problem, as my application contains the term ".device")
I found the problem in /src/pushnotification/apple/apple-client.cc line 45
To solve it, you need to replace it with

const auto apn_server = StringUtils::endsWith(certName, ".dev") ? APN_DEV_ADDRESS : APN_PROD_ADDRESS;

That's all

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

No branches or pull requests

2 participants