Class: Xiaomi::Push::Android

Inherits:
Client
  • Object
show all
Defined in:
lib/xiaomi/push/platforms/android.rb

Overview

Android 推送

Examples:

Xiaomi::Push::Message::Android.new(
  title:'标题要有吸引力',
  description:'描述可以在手机显示两行',
  notify_type:'DEFAULT_ALL',
  extras: {
    source: 'mpush'
  }
)

Constant Summary

Constants included from Const

Const::DEVICES, Const::PRODUCTION_URL, Const::SANDBOX_URL

Instance Attribute Summary

Attributes inherited from Client

#client, #device

Attributes included from Const

#base_url

Method Summary

Methods inherited from Client

#feedback, #get, #initialize, #message, #messages, #post, #topic, #user

Methods included from Const

#build_uri, #production, #sandbox, #use_production!, #use_sandbox!

Constructor Details

This class inherits a constructor from Xiaomi::Push::Client