Sha256: 5a250b29dc94af0738b220510f7d7c02e449e1dec16e3755bc2a3990807719bf
Contents?: true
Size: 382 Bytes
Versions: 2
Compression:
Stored size: 382 Bytes
Contents
module PushToSNS class IosPushNotification < BasicPushNotification DEFAULT_MESSAGE = "IOS Push Notification" def message { apns => { aps: { alert: payload[:message] || DEFAULT_MESSAGE }, data: payload }.to_json } end private def apns configuration.apply(:read_ios_apns, device).to_sym end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
push_to_sns-0.1.1 | lib/push_to_sns/ios_push_notification.rb |
push_to_sns-0.1.0 | lib/push_to_sns/ios_push_notification.rb |