AsyncImage icon indicating copy to clipboard operation
AsyncImage copied to clipboard

WidgetExtension compatibility

Open taher-mosbah opened this issue 4 years ago • 6 comments

Hello, Thanks for the example !

I was trying to use your code for an iOS 14 widget extension but the ImageLoader gets deallocated too soon, any ideas ? maybe a limitation in how WidgetExtension works ?

Screenshot 2020-07-02 at 18 07 43

taher-mosbah avatar Jul 02 '20 16:07 taher-mosbah

I'm facing similar issue. @taher-mosbah Did you get it to work somehow? Any alternatives?

atulkhatri avatar Jul 15 '20 20:07 atulkhatri

No no luck, one possible solution I didn't get time to explore is to use onBackgroundURLSessionEvents

taher-mosbah avatar Jul 20 '20 07:07 taher-mosbah

Hey guys, did you get it working? The request is done but as you said it get deinit instantly. So looks like there's now way to use Combine approach for this.

yreaction avatar Aug 03 '20 11:08 yreaction

Did anyone ever find a workaround for this?

tatealive avatar Sep 18 '20 02:09 tatealive

I've posted an update with iOS 14 fixes, but haven't checked widgets support. I'd very grateful if you happen to find some time to check whether this solves your issue with widgets.

V8tr avatar Sep 24 '20 15:09 V8tr

@V8tr - unfortunately the updates posted with iOS14 fixes do not resolve the issues for me. The imageLoader gets deallocated too soon.

zero0cool0 avatar Oct 01 '20 12:10 zero0cool0