-
Notifications
You must be signed in to change notification settings - Fork 677
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
Unable to connect #85
Comments
Same here. The macOS app works fine, but the push from iOS code fails with this error. |
same here |
Same here.... |
It seems that this issue is something to do with the legacy Binary Interface (gateway.push.apple.com) which was retired March 31st, 2021 (https://developer.apple.com/news/?id=c88acm2b). It includes the sandbox as well... |
same... |
1 similar comment
same... |
same. |
+1 |
Same here... :( does anybody know an alternative that is still working? |
Same here |
Any luck? |
I've seen there are some contributors listed in the repo let's see if someone knows how to fix it 🤔. |
same |
"Unable to connect: Socket connecting failed (-1)" means that you trying establish connection which cannot be established. DEVICE_TOKEN=enter_here_your_device_token; \
TOPIC=enter.here.bundleId.of.App; \
CERTIFICATE_FILE_NAME=path_to_CER_format_of_push_certificate; \
CERTIFICATE_KEY_FILE_NAME=path_to_PEM_format_of_push_certificate; \
APNS_HOST_NAME=api.sandbox.push.apple.com; \
curl -v \
--header "apns-topic: ${TOPIC}" \
--header "apns-push-type: alert" \
--cert "${CERTIFICATE_FILE_NAME}" --cert-type DER \
--key "${CERTIFICATE_KEY_FILE_NAME}" --key-type PEM \
--data '{"aps":{"alert":"test"}}' \
--http2 https://${APNS_HOST_NAME}/3/device/${DEVICE_TOKEN}
|
When selecting the certificate this error is coming
"Unable to connect: Socket connecting failed (-1)"
Not able to find any help to figure out why this is happening and how to fix this.
The text was updated successfully, but these errors were encountered: