Sha256: 1a3cfe97d27b4e4371ef5a8afaad43f6abfef18b3f4543cbe818abb80140ebe7
Contents?: true
Size: 615 Bytes
Versions: 1
Compression:
Stored size: 615 Bytes
Contents
module PushToSNS class AndroidPushNotification < BasicPushNotification def message { GCM: { data: default_payload.deeper_merge(payload) }.to_json } end private def default_payload basic_payload = {} basic_payload[:title] = payload[:title] if payload[:title] basic_payload[:message] = payload[:message] if payload[:message] basic_payload[:smallIcon] = payload[:small_icon] if payload[:small_icon] basic_payload[:sound] = payload[:sound] if payload[:sound] basic_payload[:image] = payload[:image] if payload[:image] basic_payload end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
push_to_sns-0.5.0 | lib/push_to_sns/android_push_notification.rb |