iOs Widget background update

前端 未结 3 466
小蘑菇
小蘑菇 2021-01-02 00:53

According to what apple says about widgetPerformUpdateWithCompletionHandler:, the iOs Widget can update his content also when the widget is not visible.

In my debug

3条回答
  •  我在风中等你
    2021-01-02 01:36

    Call your API in func widgetPerformUpdate(completionHandler: (@escaping (NCUpdateResult) -> Void)) method and call the completionHandler(NCUpdateResult.newData) .

提交回复
热议问题