0

I am doing watchface and I am experimenting following issue : method onDataChange() on watch is only called when my watchface is on. When it is shaded or in ambient data are not fetched. How can I make watch accept changed data when not active?

Edit: It turned out it was my mistake. Code was removing listeners in onVisiabilityChange()

wonglik
  • 1,043
  • 4
  • 18
  • 36
  • Are you calling `setUrgent()` on your `PutDatRequest` (on the handheld)? If you don't, the data changes may take up to half an hour to propagate - and although I haven't seen this behavior myself, it wouldn't surprise me if it this applied only when the watch is in ambient. – Sterling Mar 11 '16 at 19:49
  • @String Unfortunately it does not help. Watch get data instantly when active but when screen is off data won't be fetched. – wonglik Mar 14 '16 at 09:31
  • Then you probably need to add the relevant snippets of your code to your question. This isn't the normal behavior of the Data API, so without seeing what you're doing, nobody here can do more than guess (as I did with `setUrgent()`). – Sterling Mar 14 '16 at 13:54
  • @String Yep it was my fault. Code was removing listener in onVisibilityChange. – wonglik Mar 16 '16 at 07:56

0 Answers0