带有通知的 Windows Phone 8 后台任务 [英] Windows Phone 8 Background Task with notifications

查看:22
本文介绍了带有通知的 Windows Phone 8 后台任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个可以实时检查比赛结果的应用.

I have an app that checks the results of matches in real time.

我希望能够每分钟轮询服务器以查看比赛是否有任何更新.这是可能的,还是我的用户需要让应用保持打开状态才能获得实时结果?

I want to be able to poll the server every minute to see if there has been any updates on the match. Is this possible, or do my users need to keep the app open to get live results?

推荐答案

您将不被允许在 Windows Phone 的后台任务中进行任何形式的实时轮询.

You'll not be allowed to do any form of real-time polling in a background task on Windows Phone.

但是,如果您将应用程序保持在前台打开,您就可以进行所有您喜欢的轮询.

However, if you keep your application open in the foreground, you can do all the polling you like.

这篇关于带有通知的 Windows Phone 8 后台任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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