Method: Umeng::SendMessage#push_unicast
- Defined in:
-
lib/umeng/send_message.rb,
lib/umeng/send_message_bak.rb
单播
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/umeng/send_message.rb', line 26 def push_unicast(device_tokens, opts={}) params = { device_tokens: device_tokens, type: 'unicast', production_mode: opts[:production_mode] } case @plantform when 'Android' params.merge! android_params(opts) push(params) when 'iOS' params.merge! ios_params(opts) push(params) end end |