jpoz / APNS

An Apple Push Notification Service gem
MIT License
543 stars 195 forks source link

Split into high-level API and low-level connection-oriented API #11

Open betamatt opened 12 years ago

betamatt commented 12 years ago

Enable connections to be directly created with different keys. APNS high-level interface is preserved.

conn = NotificationConnection.new(key, pass)
conn.send_notification("123", "My test message")
betamatt commented 12 years ago

I guess this does the same thing as PR#9 but with a slightly different look. Whichever one you like is fine by me but I'd greatly appreciate one of them getting pulled, or direction as to what you'd like to see instead. By all means, push the work back onto me :-)