I have a widget which retrieves updates from a server at regular intervals throughout the day, but want it to immediately update again if the user actually looks at it. This always worked fine in iOS 8/9... viewWillAppear fired specifically when, well, the view was about to appear.
But in iOS 10, it seems to happen at other times as well. Not sure when. But suddenly I'm getting about 5x as many hits on the update service, which is a paid service, so this is a real problem.
Is there a way, on a Today widget, to be guaranteed that the widget is actually visible? Or, at the very least, that the Today View is actually visible?
viewDidLoad()
andviewDidAppear()
to observe the info. If not, can you check it by setting breakpoints. You might be able to find out a specific scenario by debugging it. Otherwise, can you please post relevant code for others to observe? – Colombi