Post

Replies

Boosts

Views

Activity

Best strategy to load image in iOS 14 widget?
Hi, from the developer forum and apple docs, I realize that I need to load my image synchronously. And use background task for fetching my updated data. So my question is, should I need to load my image in background task instead of TimelineProvider? iOS will learn my update and data usage pattern then determine the update frequency for me right? So to reduce widget network bandwidth, it will be a better approach?
0
0
700
Jan ’21
How to test App Clip on Testflight
From original topic: https://developer.apple.com/forums/thread/657785 There are no additional steps required from you. Once your app and app clip are live, the registered URLs for the advanced experience will automatically start working. Can anyone tell me: What is "live" mean? Will it work on testflight env, I need to test it before -publish to production? Is status Received live? The second question: I scan a QR code, it tell me that: "The app clip is not currently in your country"
2
0
2.5k
Oct ’20
Widget with content updated from REST api
Hi, I'm developing a widget extension that show content from REST api. It show the updated following stock info. I intend to build a workflow like that: Fetch list from api Create a timeline with only 1 timeline entry & attach the stocks into timeline entry Render widget Reload new timeline at next 5 minutes My problem is: I don't have any experience with native iOS development I don't know the best practice, can anyone tell me your workflow? I don't know how to call api in widget extension? These docs doesn't enough info to help me: downloading_files_in_the_background - https://developer.apple.com/documentation/foundation/url_loading_system/downloading_files_in_the_background /documentation/widgetkit/keeping-a-widget-up-to-date - https://developer.apple.com/documentation/widgetkit/keeping-a-widget-up-to-date Any helps are welcome!
2
0
2.8k
Jul ’20
Create new ios 14 widget extension cause crashed
Hi, I just create new widget extension on ios 14. I did not modify anything in my *_widget.swift file, just left it as default after created. Then I run widget extension to simulator The result is my extension was crashed, I can not figure out the error and reasons. I cannot find my widget in the list of widget to add to my home screen Do you have a boilerplate or point me out what the error is? I'm using xCode 12 beta.
3
0
2.0k
Jul ’20