lib/pushlet/apns_gateway.rb in pushlet-0.2.3 vs lib/pushlet/apns_gateway.rb in pushlet-0.2.5
- old
+ new
@@ -51,10 +51,10 @@
# Seriously Apple, a 4 byte identifier? Really guys?
identifier = SecureRandom.random_bytes(4)
end
payload = {}
-
+
[:device_token, :alert, :badge, :sound, :expiry, :identifier].each do |a|
if a == :expiry
payload[a] = args[a] || Time.now + 60*10
else
payload[a] = args[a] if args[a]