0

Widget Network Disconnected State

FAQ - This post is taken from a list of the most frequently asked questions during the pre-release of the WDK

What is the preferred method to check for server connectivity to remove the yellow triangle from the snippet. Should we have a background task kick off every XX seconds and test? If so will the triangle remove itself or do we need to call a function to do so?

by
2 Replies
  • Connectivity could fail for any number of reasons, so we can't handle this state automatically in the framework. Please note that "no network" doesn't just mean the device doesn’t have a network connection, but it could also mean that your servers are down or that the internet in general has issues. You should not kick off a background task unless you are already doing so. Only pop up the network triangle when a request fails and as soon as one succeeds, then clear the state. You shouldn’t be polling frequently simply because of checking for no network if you don't need fresh data. You can poll every few minutes to get connected again. Note that the widget can make a call every time the sidebar is launched from the dock, so polling should be turned off when you have a connection again.
    0
  • If you find any of this FAQ confusing or have additional questions, please open a new post with your specific question.
    0

Recent Posts

in General - Yahoo! TV Widgets