I have an app that uses an App Group to share data (images) between my main app target and my widget extension. I could load my widget image reliably prior to iOS 14.1 but things seem to not be working lately.
The following is my helper to get a reference to the container in both my app and widget target, my static string matches the group in both entitlement files:
Has anyone else had issues lately using AppGroups and widgets to share data from app to widget?
My procedure is as such:
The following is my helper to get a reference to the container in both my app and widget target, my static string matches the group in both entitlement files:
Code Block let directory = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: .widgetGroupIdentifier)!
Has anyone else had issues lately using AppGroups and widgets to share data from app to widget?
My procedure is as such:
Generate Image
Save to container directory
Reload widget timeline
Separately in Widget Extension with debugger attached, wait for getTimeline to fire
Read contents of directory, the file is not listed there!