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

Version Path
urbanairship-8.0.1 example/pusher.rb
urbanairship-8.0.0 example/pusher.rb
urbanairship-7.0.0 example/pusher.rb
urbanairship-6.0.0 example/pusher.rb
urbanairship-5.9.0 example/pusher.rb
urbanairship-5.8.0 example/pusher.rb
urbanairship-5.7.0 example/pusher.rb
urbanairship-5.6.1 example/pusher.rb
urbanairship-5.6.0 example/pusher.rb
urbanairship-5.5.1 example/pusher.rb
urbanairship-5.5.0 example/pusher.rb
urbanairship-5.4.0 example/pusher.rb
urbanairship-5.3.0 example/pusher.rb
urbanairship-5.2.0 example/pusher.rb
urbanairship-5.0.1 example/pusher.rb
urbanairship-5.0.0 example/pusher.rb
urbanairship-4.1.1 example/pusher.rb
urbanairship-4.1.0 example/pusher.rb
urbanairship-4.0.0 example/pusher.rb