search for: 123abc456def

Displaying 1 result from an estimated 1 matches for "123abc456def".

2011 May 11
3
Constructing an array of stuff (to send multiple apple push notifications)
...nd 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, :sound => ''default'' } n2 = [device_token, :aps => { :alert => ''... iPhone!'', :badge => 1, :sound => ''default'' }] APNS.send_notif...