10从后台任务重新打开应用程序

10从后台任务重新打开应用程序

本文介绍了Windows Phone 10从后台任务重新打开应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了客户要求的问题。我们正在为移动服务提供商开发应用程序,该应用程序显示不同包装上的设备特征和价格(在不同商店展示的设备)。当用户将手机置于对接位置时,请求是显示应用程序(具有电话特征的浏览器页面)。我可以通过加速度计和后台任务判断设备何时处于停靠位置,我还会在设备停靠时触发一个Toast消息。我找到了一些答案,说它无法完成,但我仍有点怀疑,如果它不可见,则无法重新显示应用程序(在AppSettings中设置为bool标志)。



所以我的问题是,如果应用程序不在后台任务的前台模式下,我可以激活/恢复/重新显示应用程序吗?







感谢您的回答。

B



我是什么尝试过:



Im having trouble with a customer request. We are developing an app for a mobile service provider, the app is showing the devices characteristics and prices on different packgages (devices that are on display in different stores). The request was to show the application (browser page with phone characteristics) when user puts the phone in a docking position. I can tell when the device is in docking position using accelerometer and a background task, I also fire a toast message when device docks. I found some answers saying it cant be done, but still Im a bit sceptical, that nothing can be done to redisplay the app if its not visible (set in AppSettings as a bool flag).

So my question is, can I activate/resume/redisplay the application if it is not in foreground mode from the background task?



Thank you for your answers.
B

What I have tried:

I tried using Launcher.LaunchUriAsync(new Uri("ms-app://Page.xaml", UriKind.Absolute)); but it does not navigate to page.

推荐答案


这篇关于Windows Phone 10从后台任务重新打开应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 08:21