不使用 GCM 的 Android 推送通知 [英] Android Push Notification without using GCM

查看:23
本文介绍了不使用 GCM 的 Android 推送通知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要简单的步骤来实现 GCM,而不使用 android 的标准方式.相反,我需要为设备注册设置自己的中央服务器,并在不使用 GCM 的情况下将文件从服务器上传到注册设备.

I need brief steps to implement GCM without using android's standard way. Instead, I need to set up my own central server for device registration and upload file from server to registered device without using GCM.

我还需要一些建议来通过管理控制台阻止某些应用程序(例如:需要选择并向特定设备发送通知以阻止用户启动安装在设备上的 Gmail/Google Play 应用程序).它更像是移动应用程序管理的概念.让我对这些提出建议.

I also need some suggestions to block certain applications via admin console(For example: Need to choose and send a notification to a particular device to block user to launch Gmail/Google Play application installed on device). It's more like the concept of Mobile application Management. Let me have suggestions on these.

推荐答案

一些让你开始的事情:

MQTT/Paho
Paho 项目提供 MQTT 和 MQTT-SN 消息传递协议的开源客户端实现,旨在用于机器对机器 (M2M) 和物联网 (IoT) 的新应用、现有应用和新兴应用.
http://www.eclipse.org/paho/https://developer.motorolaso​​lutions.com/docs/DOC-2315

AndroidPN
这是一个为 Android 提供推送通知支持的开源项目.基于 xmpp 的通知服务器和客户端工具包.https://sourceforge.net/projects/androidpn/

教程
关于如何使用 MQTT 协议为您的 Android 应用程序实现推送通知的快速示例.我不会在这里讨论为什么应用程序可能需要推送通知或 Push over Pull 的优势.我假设您确切地知道我所说的推送通知是什么意思以及您可能需要它们的原因.然而,在直接进入好东西之前,让我们回顾一下这一切是如何开始的.http://tokudu.com/post/50024574938/how-to-implement-push-notifications-for-android

执事项目(已弃用)
Deacon 项目旨在为 Android 平台生成一个开源推送通知库.Deacon"是一个 Java 类库,Android 开发人员使用它来接收来自 Meteor Comet Web 服务器的推送通知.执事演示"(http://github.com/davidrea/Deacon-Demo/) 是一款用于测试和演示 Deacon 的 Android 应用程序,也是由 Deacon 项目成员开发的.
https://github.com/davidrea/Deacon

The Deacon Project (Deprecated)
The Deacon Project aims to produce an open-source push notifications library for the Android platform. "Deacon" is a Java class library used by Android developers to receive Push notifications from a Meteor comet web server. "Deacon-Demo" (http://github.com/davidrea/Deacon-Demo/) is an Android app that is used for testing and demonstration of Deacon, and is also developed by members of the Deacon project.
https://github.com/davidrea/Deacon

类似问题:Android 推送消息没有 gcm 可能吗?

此外,如果您想拥有自己的服务器,但仍然让 GCM 负责交付(它确实是最便宜、如果不是免费且可靠的发送通知的方式之一),则有很多替代方案.喜欢 PushJet PushKin更多.

In addition, if you'd like to have your own server but would still let GCM take care of delivery (it really is one of the cheapest, if not free, and reliable ways to send notifications) there are lot's of alternatives. Like PushJet PushKin and much more.

这篇关于不使用 GCM 的 Android 推送通知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆