lib/xinge/android.rb in ruby-for-xinge-0.1.1 vs lib/xinge/android.rb in ruby-for-xinge-0.1.2
- old
+ new
@@ -3,13 +3,13 @@
class Android < Base
def initialize(accessId = nil, secretKey = nil, options = {})
super
end
def pushToSingleDevice(token, title, content, params={})
- self.push_single_device(token, 1, build_simple_message(title, content))
+ self.push_single_device(token, 1, build_simple_message(title, content), params)
end
def pushToAllDevice(title, content, params={})
- self.push_all_device(1, build_simple_message(title, content))
+ self.push_all_device(1, build_simple_message(title, content), params)
end
protected
def build_simple_message(title,content)