Git Product home page Git Product logo

android-push-demo's Introduction

介绍

一个 AVOS Cloud 推送消息的简单 Demo,直接在客户端推送消息,并自己接收。

img

实际生产环境中,建议从应用设置里关闭从客户端推送,并且使用我们提供的推送 web 平台或者 REST API 发起服务端推送更为合适。否则推送可能被滥用。

你可以从推送 Demo 中学到:

  • 如何自定义接受推送信息的 Receiver
  • 如何订阅频道
  • 如何保存 installation
  • 如何根据 installationIdchannel 推送,随意定义你的推送对象
  • 如何推送 json 数据以及获取数据
  • 如何从客户端发起推送

如何运行

  • 导入本工程到 Eclipse
  • 右键点击项目,运行 Run As -> Android Application即可看到。

替换 App 信息

Demo 使用的是公共的 app id 和 app key,您可以在com.avos.avoscloud.PushDemo.PushDemoApp修改成您自己的应用 id 和 key。

android-push-demo's People

Contributors

lzwjava avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.