如何在Android中从另一台服务器获取通知
我正在从服务器获取数据,并且我想在 android 中显示推送通知。我该怎么做?
I am getting data from the server, and I want to show a push notification in android. How can I do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你自己要清楚你到底想要什么,我认为你只是使用一个网络服务来获取数据。对于推送通知,您需要实现 Android Cloud to Device Messaging 和 在这里您可以找到完整的教程。
干杯
Be clear to yourself What do you exactly want, I think you are using just a web service to get data. For push Notifiaction you need to implement Android Cloud to Device Messaging and here you can find complete tutorial.
Cheers