calonso / calonso/ruby-push-notifications
getaddrinfo: nodename nor servname provided, or not known (SocketError)
- Dominant language
- Ruby
- Stars
- 399
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Description
The host url that I'm requesting is `https://api.push.apple.com/....`
The actual url is the push token appended to the above url:
Therefore the actual url becomes `https://api.push.apple.com/..../` which is `uri`
`notification = RubyPushNotifications::APNS::APNSNotification.new tokens, { aps: { alert: 'Hello APNS World!', sound: 'true', badge: 1 } }`
`pusher = RubyPushNotifications::APNS::APNSPusher.new(File.read('Certificates.pem'), true, password, { host: uri })`
On `pusher.push [notification]` I get `getaddrinfo: nodename nor servname provided, or not known (SocketError)`.
The uri works perfectly via curl.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.