Sha256: 62f572d4cae1aa437f5ae06206befb66e3914fa9b60c5a9f7c4d24841894a628

Contents?: true

Size: 363 Bytes

Versions: 4

Compression:

Stored size: 363 Bytes

Contents

class Pusher

	require 'urbanairship'
	UA = Urbanairship

	def send_broadcast_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.device_types(['ios','android'])
		p.send_push
	end

end

Pusher.new.send_broadcast_message

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
urbanairship-9.2.0 example/pusher.rb
urbanairship-9.1.1 example/pusher.rb
urbanairship-9.1.0 example/pusher.rb
urbanairship-9.0.0 example/pusher.rb