android - 如何将通知从我的服务器推送到我的 Android 应用程序?

标签 android push-notification

我想自己控制推送通知,而不使用像 C2MD 这样的第三方服务器需要通过谷歌服务器推送通知。所以有什么想法,我怎样才能为 Android 实现这个?

最佳答案

您可以使用持久的 TCP/IP 连接来实现此目的。

一些资源供大家引用

http://tokudu.com/2010/how-to-implement-push-notifications-for-android/

http://mqtt.org

似乎 stackoverflow 对此进行了讨论

Does Android support near real time push notification?

关于android - 如何将通知从我的服务器推送到我的 Android 应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5335630/

相关文章:

java - 使用 MPAndroidChart 使用 double 值创建条形图

android - #define 预处理器如何在 C 中真正工作

iphone - 收到推送通知时如何打开另一个屏幕而不是主屏幕

iphone - didRegisterForRemoteNotificationsWithDeviceToken : doesn't invoke on calling registerForRemoteNotificationTypes:?

iphone - 推送通知

android - 持久性 BottomSheet : Swipe to Expand Issue

android - 无法使用 Android Studio 启动新项目

ios - Swift - 远程通知和导航 Controller 流程

java - 解析 xml 文件中引用 xml 文件的实体 (android)

iphone - 我必须注册下载我的应用程序的每个设备 token 吗?