Windows 10 Mobile中的RoamingSettings不会上载到云中,而是上载到Windows 10 PC中 [英] RoamingSettings in Windows 10 Mobile is not uploaded to the cloud, but in Windows 10 PC

查看:133
本文介绍了Windows 10 Mobile中的RoamingSettings不会上载到云中,而是上载到Windows 10 PC中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我目前正在开发一款UWP应用程序,并希望在手机和PC应用程序之间同步一些设置。因此,我使用RoamingSettings并且为了更好/更快地测试"HighPriority"和"HighPriority"。值,在大约10-30秒内同步。

I'm currently developping an UWP app and would like to sync some settings between the phone and the PC app. Therefore, Im using RoamingSettings and for better/faster testing the "HighPriority" value, which is synced in about 10-30 seconds.

我在两台设备(PC和手机)上运行完全相同的应用程序,因为这是一个UWP应用程序。当我更改PC上的设置时,大约15秒后我的手机上会调用DataChanged事件。完美!

I'm running exactly the same app on both devices (PC and phone), as this is an UWP app. When I change the settings on my PC, the DataChanged event is called on my phone after about 15 seconds. Perfect!

但是:当我更改手机设置时,我的电脑上没有任何反应。删除两台设备上的应用程序并在两台设备上重新安装后,两台设备上显示的值均为PC应用程序中定义的值。
看起来像Windows 10移动设备(版本10536)没有将RoamingSettings上传到云端。

But: When I change the settings on my phone, nothing happens on my PC. After deleting the app on both devices and reinstalling it on both devices, the value that is displayed on both devices is the value that was defined on the PC app. It looks like the Windows 10 Mobile device (build 10536) is not uploading the RoamingSettings to the cloud.

我的问题:


  • 在上传漫游数据之前,我是否必须在手机上执行任何特定操作?
  • 这是当前版本10536的已知错误吗?
  • 有什么建议吗? :)

谢谢!

推荐答案

您应该执行任何操作让您的数据漫游的具体操作。  您的数据有多大?  

You should have to perform any specific action to get your data to roam.  How big is your data?  


  • 不要漫游大量的应用数据。应用可能会漫游的应用数据量有限制;使用 RoamingStorageQuota  属性
    以获得此最大值。如果应用程序达到此限制,则在应用程序数据存储的大小不再超过限制之前,任何数据都无法漫游。在设计应用程序时,请考虑如何对较大的数据进行绑定,以便不超过限制。例如,如果保存一个
    游戏状态每个需要10KB,那么该应用程序可能只允许用户存储多达10个游戏。

它不会伤害到设置高优先级

It could not hurt to make the setting high priority


  • 对于重要的时间关键设置,请使用与 相关联的  HighPriority  设置a href ="https://msdn.microsoft.com/en-us/library/windows/apps/windows.storage.applicationdata.roamingsettings.aspx"style ="text-decoration:none; font-family:'Segoe UI Semibold','Segoe UI','Lucida Grande',Verdana,Arial,Helvetica,sans-serif; font-size:1em; line-height:1.429em; color:#00188f"> RoamingSettings
  • For important, time critical settings, use the HighPriority setting associated with RoamingSettings. .


这篇关于Windows 10 Mobile中的RoamingSettings不会上载到云中,而是上载到Windows 10 PC中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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