Displaying 1 result from an estimated 1 matches for "device_token".
Did you mean:
device_open
2011 May 11
3
Constructing an array of stuff (to send multiple apple push notifications)
I''m using this gem https://github.com/justintv/APNS to send push
notifications to an iPhone app and amazingly it works for single
notifications, such that I can do...
APNS.send_notification(Device.first.device_token,''test message'')
Works great...
Now it should be a simple task (as per the docs to send multiple
notifications)
Gem says like this...
device_token = ''123abc456def''
n1 = [device_token, :aps => { :alert => ''Hello...'', :badge => 1, :sou...