Android 应用程序更新通知 [英] Android Application Update Notification

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

问题描述

我一个月前将我的应用上传到了 android 市场.现在我已经上传了它的新版本.我的设备上安装了旧版本.但我没有收到更新通知.当我将应用程序更新到 Android Market 时,是否有任何选项可以向用户发送更新通知?

I uploaded my app to android market a month ago. Now I have uploaded its new version. I have old version installed on my device. But I have got NO update notification. Is there any option available to send update notifications to users when I update my application to Android Market?

推荐答案

默认情况下不是:市场通知不会以任何方式向应用程序开发人员公开.如果您想通知您的用户,您需要将其构建到您的应用程序中:设置一个服务器来公开报告最新版本的 HTTP url,然后使用 AlarmManager 调用该 URL 并查看如果设备上的版本与最新版本相同.如果没有弹出消息或通知并将其发送到市场进行升级.此处描述了同样的事情.

Not by default: the market notifications are not something exposed to app developers in any way. If you want to notify your users you'll need to build that into your app: set up a server that exposes an HTTP url that reports the latest version, then use an AlarmManager to call that URL and see if the version on the device is the same as the latest version. If it isn't pop up a message or notification and send them to the market to upgrade. Same thing described here.

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

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