Project

lorkhan

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
APNS HTTP/2 Client
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
>= 0
~> 10.0
~> 3.5

Runtime

>= 2.2.1
>= 0.14.1, < 2
 Project Readme

Lorkhan

CircleCI Code Climate Issue Count

Apple Push Notification Services client using the HTTP/2 API and Provider Authentication Tokens

Getting Provider Authentication Tokens

See: "Generate a universal provider token signing key" under "Configure push notifications." in Xcode Help

Sending a Push Notification

token = Lorkhan::ProviderToken.new(key_id: '<token key id>', team_id: '<developer team id>', secret: '<PAT secret>')
connection = Lorkhan::Connection.new(production: true, token: token)

notification = Lorkhan::Notification.new('<device token>')
notification.topic = '<your app ID>'
notification.alert = 'Hello from Lorkhan'

connection.push(notification)

Other Gotcha's

  • Your OpenSSL implementation MUST support the ES256 elliptical curve.

Extra reading