Web Tile works once but never refreshes

帅比萌擦擦* 提交于 2019-12-23 05:39:10

问题


I have developed a one page web tile using the online tool. The URL returns JSON from my own service. The first time the tile runs the data is correct on the band, after that though it never ever refreshes. I have looked into the forums and tried things out, including refreshing with the sync on the phone and ensuring the tile is closed. The headers on my service do not include Last-Modified or ETag as suggested in forums. Doing a post in the browser on my phone and desktop works like it should with the latest data.

My request headers look like this:

Connection: keep-alive Cache-Control: max-age=0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8 Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36 Accept-Encoding: gzip, deflate, sdch Accept-Language: en-GB,en-US;q=0.8,en;q=0.6

My response headers look like this:

HTTP/1.1 200 OK Cache-Control: no-cache Expires: -1 Content-Type: application/json Transfer-Encoding: chunked Date: Sun, 17 Jan 2016 11:56:27 GMT Server: localhost


回答1:


Thanks for reporting this. We have identified the problem in the Simple tiles on Android and are working on a fix. We are targeting to have it in the next Android Health App refresh.




回答2:


I can confirm for me using my Android phone and the latest version of MS Health (1.3.20213.1) and MS Band (2.0.4215.0 26 R), my web tile now works, so this was indeed a bug, nothing to do with my own web tile.



来源:https://stackoverflow.com/questions/34838182/web-tile-works-once-but-never-refreshes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!