Post

Replies

Boosts

Views

Activity

Reload a timeline with background notifications
Hello! I am trying to reload my widget timeline when my app receives background notifications. However, when the app frequently receives background notifications, the widget does not reload a timeline. Is it limited like TimelineReloadPolicy to frequently reload a timeline, when an app frequently receives background notifications? In such a situation, what is the best practice? Thank you.
1
0
843
Mar ’21
Best practice for using a single EKEventStore instance across threads?
Hello, Regarding EKEventStore, the WWDC session mentions that “you should only have one of these for your application.” In my app, I need to use the instance on both the main thread and a background thread, and I would like to share a single instance across them. However, EKEventStore is a non-sendable type, so it cannot be shared across different isolation domains. I would like to know what the recommended best practice is for this situation. Also, do I need to protect the instance from data races by using a lock? Thank you.
1
0
108
4d