Post

Replies

Boosts

Views

Activity

URLSession Requests from a Widget
My widget needs to get that from an API to generate its timeline. In the 3rd video of the Widget Code-Along the presenter says that the in-process foreground URLSessions should work as expected. My widget gets stuck at placeholder view and never shows the real data. Everything works fine and the widget renders as expected when I use some dummy data to generate the timeline. Anybody, any success with fetching data from the Internet in a widget?
2
0
2.7k
Jul ’20