Sha256: b549be9d730f2d79086280d3c22bd214ad345796d8e79fdf4e12165d980fd13e
Contents?: true
Size: 410 Bytes
Versions: 19
Compression:
Stored size: 410 Bytes
Contents
class Pusher require 'urbanairship' UA = Urbanairship def send_message airship = UA::Client.new(key:'app_key', secret:'master_secret') p = airship.create_push p.audience = UA.all p.notification = UA.notification(alert: 'Hello') p.device_types = UA.all p.in_app = UA.in_app( alert: 'This is a test message!', display_type: 'banner' ) p.send_push end end Pusher.new.send_message
Version data entries
19 entries across 19 versions & 1 rubygems