iOS 8 today widget stops working after a while

前端 未结 4 626
青春惊慌失措
青春惊慌失措 2021-01-30 11:38

I\'ve made a today widget for the german ice hockey league DEL.

I\'m loading the next games from our server an show them in a tableView. The loading process is started i

4条回答
  •  忘掉有多难
    2021-01-30 12:11

    I've got the same problem and I resolved it by calling completionHandler(NCUpdateResultNoData); right after your network request even when the response hasn't been returned. I found that if completion handler is not called the widgetPerformUpdateWithCompletionHandler will no longer get invoked, and therefore there won't be any more updates. Also make sure you call completion handler in all branches after your request call returns.

提交回复
热议问题