How to reset intent extension configurations in WidgetKit

后端 未结 2 1700
眼角桃花
眼角桃花 2021-02-07 21:26

I have an application where a user can login. If a user is logged in, then I display a placeholder for my widget and it\'s configurable through an intent extension.

The c

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-07 22:02

    I had the same issue that the widget was showing stale configuration options. I solved this by forcefully refreshing all objects in my shared Core Data database which I was using. I did this in the „getTimeline“ method.

提交回复
热议问题