{"id":19614938,"url":"https://github.com/leancloud/android-push-demo","last_synced_at":"2025-04-28T02:30:55.967Z","repository":{"id":25789219,"uuid":"29227737","full_name":"leancloud/android-push-demo","owner":"leancloud","description":"Android Push Demo ，示例 LeanCloud 的推送功能","archived":false,"fork":false,"pushed_at":"2021-12-11T13:13:29.000Z","size":84,"stargazers_count":60,"open_issues_count":5,"forks_count":35,"subscribers_count":34,"default_branch":"master","last_synced_at":"2024-04-13T06:30:02.273Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leancloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-14T04:50:40.000Z","updated_at":"2022-11-16T09:07:16.000Z","dependencies_parsed_at":"2022-08-24T14:14:33.395Z","dependency_job_id":null,"html_url":"https://github.com/leancloud/android-push-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancloud%2Fandroid-push-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancloud%2Fandroid-push-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancloud%2Fandroid-push-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancloud%2Fandroid-push-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leancloud","download_url":"https://codeload.github.com/leancloud/android-push-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224092037,"owners_count":17254152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T10:54:33.411Z","updated_at":"2024-11-11T10:54:34.684Z","avatar_url":"https://github.com/leancloud.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 介绍\n\n一个 LeanCloud 推送消息的简单 Demo，直接在客户端推送消息，并自己接收。\n\n![img](https://raw.githubusercontent.com/lzwjava/plan/master/push.png)\n\n\n**实际生产环境中，建议从应用设置里关闭从客户端推送，并且使用我们提供的推送 web 平台或者 REST API 发起服务端推送更为合适。否则推送可能被滥用。**\n\n你可以从推送 Demo 中学到：\n\n* 如何自定义接受推送信息的 `Receiver`\n* 如何订阅频道\n* 如何保存 installation\n* 如何根据 `installationId` 或 `channel` 推送，随意定义你的推送对象\n* 如何推送 `json` 数据以及获取数据\n* 如何从客户端发起推送\n\n## 替换 App 信息\n\nDemo 使用的是公共的 AppId、AppKey 和 ServerUrl，您可以在`com.avos.avoscloud.PushDemo.PushDemoApp`修改成您自己的应用 AppId、AppKey 和 ServerUrl。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleancloud%2Fandroid-push-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleancloud%2Fandroid-push-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleancloud%2Fandroid-push-demo/lists"}